public class RoundRobinLoadBalancingStrategy extends SpaceProxyLoadBalancingStrategy
_cluster, _lock, _logger
Constructor and Description |
---|
RoundRobinLoadBalancingStrategy(RemoteOperationsExecutorsCluster cluster,
Collection<String> membersNames,
int numOfOperationsTypes) |
Modifier and Type | Method and Description |
---|---|
RemoteOperationsExecutorProxy |
getCandidate(RemoteOperationRequest<?> request) |
void |
onMemberConnected(RemoteOperationsExecutorProxy connectedMember) |
void |
onMemberDisconnected(String disconnectedMemberName) |
protected void |
updateActiveProxy(RemoteOperationsExecutorProxy newActiveProxy)
This method MUST be called from within a synchronized block.
|
findActiveMember, findActiveMemberUninterruptibly, findAnyAvailableMember
public RoundRobinLoadBalancingStrategy(RemoteOperationsExecutorsCluster cluster, Collection<String> membersNames, int numOfOperationsTypes)
public RemoteOperationsExecutorProxy getCandidate(RemoteOperationRequest<?> request)
getCandidate
in class SpaceProxyLoadBalancingStrategy
public void onMemberConnected(RemoteOperationsExecutorProxy connectedMember)
onMemberConnected
in class SpaceProxyLoadBalancingStrategy
public void onMemberDisconnected(String disconnectedMemberName)
onMemberDisconnected
in class SpaceProxyLoadBalancingStrategy
protected void updateActiveProxy(RemoteOperationsExecutorProxy newActiveProxy)
SpaceProxyLoadBalancingStrategy
updateActiveProxy
in class SpaceProxyLoadBalancingStrategy
Copyright © GigaSpaces.