public class RoundRobinBalancingStrategy extends Object implements FailoverRequestBalancingStrategy
FailoverRequestBalancingStrategy.| Constructor and Description |
|---|
RoundRobinBalancingStrategy() |
| Modifier and Type | Method and Description |
|---|---|
SocketAddress[] |
getServers() |
SocketAddress |
nextServer(Set<SocketAddress> failedServers) |
void |
setServers(Collection<SocketAddress> servers)
Inform the strategy about the currently alive servers.
|
public void setServers(Collection<SocketAddress> servers)
FailoverRequestBalancingStrategysetServers in interface FailoverRequestBalancingStrategypublic SocketAddress nextServer(Set<SocketAddress> failedServers)
nextServer in interface FailoverRequestBalancingStrategyfailedServers - Servers that should not be returned (if any other are available)public SocketAddress[] getServers()
Copyright © 2022 JBoss by Red Hat. All rights reserved.