public class RoundRobinStrategy<T extends Endpoint> extends ArrayBasedStrategy<T>
| Modifier and Type | Field and Description |
|---|---|
protected java.util.concurrent.atomic.AtomicInteger |
counter |
endpointCache, endpoints, nodeID, preferLocal| Constructor and Description |
|---|
RoundRobinStrategy(ServiceBroker broker,
boolean preferLocal) |
| Modifier and Type | Method and Description |
|---|---|
Endpoint |
next(Context ctx,
Endpoint[] array) |
addEndpoint, getAllEndpoints, getEndpoint, getEndpointsByNodeID, isEmpty, removepublic RoundRobinStrategy(ServiceBroker broker, boolean preferLocal)