Class ArrayBasedStrategy<T extends Endpoint>
java.lang.Object
services.moleculer.strategy.Strategy<T>
services.moleculer.strategy.ArrayBasedStrategy<T>
- Direct Known Subclasses:
NanoSecRandomStrategy, RoundRobinStrategy, SecureRandomStrategy, XorShiftRandomStrategy
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddEndpoint(T endpoint) getEndpoint(Context ctx, String nodeID) protected Endpoint[]getEndpointsByNodeID(String nodeID) booleanisEmpty()abstract Endpointboolean
-
Field Details
-
endpoints
-
endpointCache
-
nodeID
-
preferLocal
protected final boolean preferLocal
-
-
Constructor Details
-
ArrayBasedStrategy
-
-
Method Details
-
addEndpoint
- Specified by:
addEndpointin classStrategy<T extends Endpoint>
-
remove
-
isEmpty
-
getEndpoint
-
getEndpointsByNodeID
-
next
-
getAllEndpoints
-