@InterfaceAudience.Public
public interface HostProvider
Modifier and Type | Method and Description |
---|---|
java.net.InetSocketAddress |
next(long spinDelay)
The next host to try to connect to.
|
void |
onConnected()
Notify the HostProvider of a successful connection.
|
int |
size() |
int size()
java.net.InetSocketAddress next(long spinDelay)
spinDelay
- Milliseconds to wait if all hosts have been tried once.void onConnected()
Copyright © 2018 The Apache Software Foundation