{"action":"created","issue":{"url":"https://api.github.com/repos/outworkers/phantom/issues/557","repository_url":"https://api.github.com/repos/outworkers/phantom","labels_url":"https://api.github.com/repos/outworkers/phantom/issues/557/labels{/name}","comments_url":"https://api.github.com/repos/outworkers/phantom/issues/557/comments","events_url":"https://api.github.com/repos/outworkers/phantom/issues/557/events","html_url":"https://github.com/outworkers/phantom/issues/557","id":180351405,"number":557,"title":"Use token aware policy","user":{"login":"meddulla","id":47389,"avatar_url":"https://avatars.githubusercontent.com/u/47389?v=3","gravatar_id":"","url":"https://api.github.com/users/meddulla","html_url":"https://github.com/meddulla","followers_url":"https://api.github.com/users/meddulla/followers","following_url":"https://api.github.com/users/meddulla/following{/other_user}","gists_url":"https://api.github.com/users/meddulla/gists{/gist_id}","starred_url":"https://api.github.com/users/meddulla/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/meddulla/subscriptions","organizations_url":"https://api.github.com/users/meddulla/orgs","repos_url":"https://api.github.com/users/meddulla/repos","events_url":"https://api.github.com/users/meddulla/events{/privacy}","received_events_url":"https://api.github.com/users/meddulla/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-09-30T16:50:32Z","updated_at":"2016-10-04T15:08:37Z","closed_at":"2016-10-04T15:08:37Z","body":"Hi,\r\n\r\nI would like to change to a token aware policy to improve performance but using the code below\r\n\r\n```\r\nobject Defaults extends DbConfiguration { \r\n[..]\r\nval connector: KeySpaceDef = new KeySpaceBuilder(_.addContactPoints(hosts: _*)\r\n      .withPort(port)\r\n      .withLoadBalancingPolicy(new TokenAwarePolicy(new DCAwareRoundRobinPolicy())))\r\n      .withClusterBuilder(_.withSocketOptions(\r\n        new SocketOptions()\r\n          .setReadTimeoutMillis(15000) // Default is 12000\r\n          .setConnectTimeoutMillis(7000) // Default is 5000\r\n      ))\r\n      .keySpace(keyspace)\r\n[..]\r\n}\r\n```\r\n\r\nI get this error\r\n\r\n`constructor DCAwareRoundRobinPolicy in class DCAwareRoundRobinPolicy cannot be accessed in object Defaults`\r\n\r\nAm currently a bit stumped on how I would change the policy to token aware. Can you help?\r\n\r\nThanks :)"},"comment":{"url":"https://api.github.com/repos/outworkers/phantom/issues/comments/251416785","html_url":"https://github.com/outworkers/phantom/issues/557#issuecomment-251416785","issue_url":"https://api.github.com/repos/outworkers/phantom/issues/557","id":251416785,"user":{"login":"meddulla","id":47389,"avatar_url":"https://avatars.githubusercontent.com/u/47389?v=3","gravatar_id":"","url":"https://api.github.com/users/meddulla","html_url":"https://github.com/meddulla","followers_url":"https://api.github.com/users/meddulla/followers","following_url":"https://api.github.com/users/meddulla/following{/other_user}","gists_url":"https://api.github.com/users/meddulla/gists{/gist_id}","starred_url":"https://api.github.com/users/meddulla/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/meddulla/subscriptions","organizations_url":"https://api.github.com/users/meddulla/orgs","repos_url":"https://api.github.com/users/meddulla/repos","events_url":"https://api.github.com/users/meddulla/events{/privacy}","received_events_url":"https://api.github.com/users/meddulla/received_events","type":"User","site_admin":false},"created_at":"2016-10-04T15:08:37Z","updated_at":"2016-10-04T15:08:37Z","body":"Thanks. That helped a lot :)"}}
{"actor":{"display_login":"meddulla"}}