Class RoundRobinBalancingStrategy
java.lang.Object
org.infinispan.hotrod.impl.transport.tcp.RoundRobinBalancingStrategy
- All Implemented Interfaces:
FailoverRequestBalancingStrategy
Round-robin implementation for
FailoverRequestBalancingStrategy.- Since:
- 14.0
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionnextServer(Set<SocketAddress> failedServers) voidsetServers(Collection<SocketAddress> servers) Inform the strategy about the currently alive servers.
-
Constructor Details
-
RoundRobinBalancingStrategy
public RoundRobinBalancingStrategy()
-
-
Method Details
-
setServers
Description copied from interface:FailoverRequestBalancingStrategyInform the strategy about the currently alive servers.- Specified by:
setServersin interfaceFailoverRequestBalancingStrategy- Parameters:
servers-
-
nextServer
- Specified by:
nextServerin interfaceFailoverRequestBalancingStrategy- Parameters:
failedServers- Servers that should not be returned (if any other are available)- Returns:
- Address of the next server the request should be routed to.
-
getServers
-