Class XorShiftRandomStrategy<T extends Endpoint>
java.lang.Object
services.moleculer.strategy.Strategy<T>
services.moleculer.strategy.ArrayBasedStrategy<T>
services.moleculer.strategy.XorShiftRandomStrategy<T>
- Direct Known Subclasses:
CpuUsageStrategy, NetworkLatencyStrategy, ShardStrategy
Fast XORSHIFT-based pseudorandom invocation strategy.
- See Also:
-
Field Summary
FieldsFields inherited from class ArrayBasedStrategy
endpointCache, endpoints, nodeID, preferLocal -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class ArrayBasedStrategy
addEndpoint, getAllEndpoints, getEndpoint, getEndpointsByNodeID, isEmpty, remove
-
Field Details
-
rnd
-
-
Constructor Details
-
XorShiftRandomStrategy
-
-
Method Details
-
next
-