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
Modifier and TypeMethodDescriptionnextServer(Set<SocketAddress> failedServers) voidsetServers(Collection<SocketAddress> servers) Inform the strategy about the currently alive servers.
-
Method Details
-
setServers
Inform the strategy about the currently alive servers.- Parameters:
servers-
-
nextServer
- Parameters:
failedServers-- Returns:
- Address of the next server the request should be routed to.
-