Class XorShiftRandomStrategyFactory

All Implemented Interfaces:
MoleculerLifecycle

public class XorShiftRandomStrategyFactory extends ArrayBasedStrategyFactory
Factory of XORSHIFT-based pseudorandom invocation strategy. XORShift is the fastest random invocation strategy.
See Also:
  • Constructor Details

    • XorShiftRandomStrategyFactory

      public XorShiftRandomStrategyFactory()
      Constructor that uses local services when available.
    • XorShiftRandomStrategyFactory

      public XorShiftRandomStrategyFactory(boolean preferLocal)
      Constructor that can be configured to use local services if possible.
      Parameters:
      preferLocal - invoke local actions if possible
  • Method Details