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>
-
Constructor Summary
ConstructorsConstructorDescriptionStandardOpDispenser(DriverAdapter adapter, ParsedOp op, LongFunction<T> opfunc) -
Method Summary
Methods inherited from class io.nosqlbench.engine.api.activityimpl.BaseOpDispenser
getAdapter, onError, onStart, onSuccess
-
Constructor Details
-
StandardOpDispenser
-
-
Method Details
-
apply
Description copied from class:BaseOpDispenserThe 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:
applyin interfaceLongFunction<T extends Op>- Specified by:
applyin interfaceOpDispenser<T extends Op>- Specified by:
applyin classBaseOpDispenser<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
-