Class PollingOp<T>

java.lang.Object
io.nosqlbench.adapters.api.activityimpl.uniform.opwrappers.PollingOp<T>
All Implemented Interfaces:
CycleOp<T>, OpGenerator, LongFunction<T>

public class PollingOp<T> extends Object implements CycleOp<T>, OpGenerator
  • Constructor Details

  • Method Details

    • apply

      public T apply(long value)
      Description copied from interface: CycleOp

      Run an action for the given cycle.

      Specified by:
      apply in interface CycleOp<T>
      Specified by:
      apply in interface LongFunction<T>
      Parameters:
      value - The cycle value for which an operation is run
    • getNextOp

      public CycleOp<T> getNextOp()
      Specified by:
      getNextOp in interface OpGenerator
    • onConditionMet

      protected void onConditionMet(T value)
    • onConditionUnmet

      protected void onConditionUnmet(T value)