Interface MultiHostConnectionStrategy.HostSelector
- All Known Implementing Classes:
MultiHostConnectionStrategy.TargetServerType
- Enclosing class:
MultiHostConnectionStrategy
public static interface MultiHostConnectionStrategy.HostSelector
Interface specifying a predicate whether to accept a given host based on its
SocketAddress and MultiHostConnectionStrategy.HostStatus.-
Method Summary
Modifier and TypeMethodDescriptionbooleantest(SocketAddress address, MultiHostConnectionStrategy.HostStatus hostStatus) Perform a check and returntruewhether the given host qualifies as target server.
-
Method Details
-
test
Perform a check and returntruewhether the given host qualifies as target server.- Parameters:
address- must not benullhostStatus- must not benull- Returns:
trueif the given host qualifies as target server;falseotherwise.
-