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 Details

    • test

      boolean test(SocketAddress address, MultiHostConnectionStrategy.HostStatus hostStatus)
      Perform a check and return true whether the given host qualifies as target server.
      Parameters:
      address - must not be null
      hostStatus - must not be null
      Returns:
      true if the given host qualifies as target server; false otherwise.