Package org.infinispan.client.hotrod
Interface FailoverRequestBalancingStrategy
-
@NotThreadSafe public interface FailoverRequestBalancingStrategy
Defines what servers will be selected when a smart-routed request fails.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description SocketAddress
nextServer(Set<SocketAddress> failedServers)
void
setServers(Collection<SocketAddress> servers)
Inform the strategy about the currently alive servers.
-
-
-
Method Detail
-
setServers
void setServers(Collection<SocketAddress> servers)
Inform the strategy about the currently alive servers.- Parameters:
servers
-
-
nextServer
SocketAddress nextServer(Set<SocketAddress> failedServers)
- Parameters:
failedServers
-- Returns:
- Address of the next server the request should be routed to.
-
-