Bind a string into a variable address using the zk2 scheme.
Bind a string into a variable address using the zk2 scheme.
Argument strings must adhere to either of the following formats:
zk2!<hosts>:2181!<path> zk2!<hosts>:2181!<path>!<endpoint>
where
- <hosts>: The hostname(s) of service discovery ZooKeeper cluster - <path>: A ServerSet path (e.g. /twitter/service/userservice/prod/server) - <endpoint>: An endpoint name (optional)
(Since version 6.7.x) Use Resolver.bind
A com.twitter.finagle.Resolver for the "zk2" service discovery scheme.
Resolution is achieved by looking up registered ServerSet paths within a service discovery ZooKeeper cluster. See
Zk2Resolver.bind
for details.