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)
FailoverRequestBalancingStrategy
setServers
in interface FailoverRequestBalancingStrategy
public SocketAddress nextServer(Set<SocketAddress> failedServers)
nextServer
in interface FailoverRequestBalancingStrategy
failedServers
- Servers that should not be returned (if any other are available)public SocketAddress[] getServers()
Copyright © 2021 JBoss by Red Hat. All rights reserved.