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