Class StandardOpDispenser<T extends Op>

java.lang.Object
io.nosqlbench.engine.api.activityimpl.BaseOpDispenser<T>
io.nosqlbench.engine.api.activityimpl.StandardOpDispenser<T>
All Implemented Interfaces:
OpDispenser<T>, OpResultTracker, LongFunction<T>

public class StandardOpDispenser<T extends Op> extends BaseOpDispenser<T>
  • Constructor Details

  • Method Details

    • apply

      public T apply(long value)
      Description copied from class: BaseOpDispenser
      The apply method in an op dispenser should do all the work of creating an operation that is executable by some other caller. The value produced by the apply method should not require additional processing if a caller wants to execute the operation multiple times, as for retries.
      Specified by:
      apply in interface LongFunction<T extends Op>
      Specified by:
      apply in interface OpDispenser<T extends Op>
      Specified by:
      apply in class BaseOpDispenser<T extends Op>
      Parameters:
      value - The cycle number which serves as the seed for any generated op fields to be bound into an operation.
      Returns:
      an executable operation