Class StrategyFactory
java.lang.Object
services.moleculer.service.MoleculerComponent
services.moleculer.strategy.StrategyFactory
- All Implemented Interfaces:
MoleculerLifecycle
- Direct Known Subclasses:
ArrayBasedStrategyFactory
Base class of Invocation Strategies. An Invocation Strategy is a
high-performance endpoint selector (Round-Robin, Random, etc.) Performance of
implementations:
Duration of 10 000 000 loops (lower value is the better):
Duration of 10 000 000 loops (lower value is the better):
- RoundRobinStrategyFactory: 190 msec
- XORShiftRandomStrategyFactory: 210 msec
- NanoSecRandomStrategyFactory: 240 msec
- SecureRandomStrategyFactory: 1061 msec
- See Also:
-
Field Summary
Fields inherited from class MoleculerComponent
broker, logger, name -
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
StrategyFactory
public StrategyFactory()
-
-
Method Details
-
create
-