public class ServerDiscoverySelector extends Object implements DiscoverySelector<Server>
| Constructor and Description |
|---|
ServerDiscoverySelector(org.apache.curator.x.discovery.ServiceProvider serviceProvider) |
| Modifier and Type | Method and Description |
|---|---|
Collection<Server> |
getAll() |
Server |
pick() |
void |
start() |
void |
stop() |
public ServerDiscoverySelector(org.apache.curator.x.discovery.ServiceProvider serviceProvider)
public Server pick()
pick in interface DiscoverySelector<Server>public Collection<Server> getAll()
public void stop()
throws IOException
IOExceptionCopyright © 2011–2017. All rights reserved.