public class NetworkLatencyStrategy<T extends Endpoint> extends XorShiftRandomStrategy<T>
| Modifier and Type | Field and Description |
|---|---|
protected NetworkLatencyStrategyFactory |
factory |
protected int |
maxTries
This strategy compares number of 'maxTries' random node.
|
rndendpointCache, endpoints, nodeID, preferLocal| Constructor and Description |
|---|
NetworkLatencyStrategy(ServiceBroker broker,
boolean preferLocal,
int maxTries,
NetworkLatencyStrategyFactory factory) |
| Modifier and Type | Method and Description |
|---|---|
Endpoint |
next(Endpoint[] array) |
addEndpoint, getAllEndpoints, getEndpoint, getEndpointsByNodeID, isEmpty, removeprotected final int maxTries
protected final NetworkLatencyStrategyFactory factory
public NetworkLatencyStrategy(ServiceBroker broker, boolean preferLocal, int maxTries, NetworkLatencyStrategyFactory factory)