Class SecureRandomStrategyFactory
java.lang.Object
services.moleculer.service.MoleculerComponent
services.moleculer.strategy.StrategyFactory
services.moleculer.strategy.ArrayBasedStrategyFactory
services.moleculer.strategy.SecureRandomStrategyFactory
- All Implemented Interfaces:
MoleculerLifecycle
Factory of Java SecureRandom-based invocation strategy.
- See Also:
-
Field Summary
Fields inherited from class ArrayBasedStrategyFactory
preferLocalFields inherited from class MoleculerComponent
broker, logger, name -
Constructor Summary
ConstructorsConstructorDescriptionConstructor that uses local services when available.SecureRandomStrategyFactory(boolean preferLocal) Constructor that can be configured to use local services if possible. -
Method Summary
Methods inherited from class ArrayBasedStrategyFactory
isPreferLocal, setPreferLocal
-
Constructor Details
-
SecureRandomStrategyFactory
public SecureRandomStrategyFactory()Constructor that uses local services when available. -
SecureRandomStrategyFactory
public SecureRandomStrategyFactory(boolean preferLocal) Constructor that can be configured to use local services if possible.- Parameters:
preferLocal- invoke local actions if possible
-
-
Method Details
-
create
- Specified by:
createin classStrategyFactory
-