All Superinterfaces:
LongFunction<T>, Op, OpResultSize
All Known Implementing Classes:
StandardCycleOp

public interface CycleOp<T> extends Op, LongFunction<T>
A CycleRunnable is simply a variation of a Runnable type. The main difference is that it is supplied with the cycle as input.
  • Method Summary

    Modifier and Type
    Method
    Description
    apply(long value)
    Run an action for the given cycle.

    Methods inherited from interface io.nosqlbench.engine.api.activityimpl.uniform.flowtypes.OpResultSize

    getResultSize
  • Method Details

    • apply

      T apply(long value)

      Run an action for the given cycle. The cycle value is only to be used for anecdotal presentation. This form is called when there is a chaining operation which will do something with this result.

      Specified by:
      apply in interface LongFunction<T>
      Parameters:
      value - The cycle value for which an operation is run
      Returns:
      A result which is the native result type for the underlying driver.