Class BlockingSegmentInput
java.lang.Object
io.nosqlbench.engine.core.fortesting.BlockingSegmentInput
- All Implemented Interfaces:
io.nosqlbench.engine.api.activityapi.input.Input
public class BlockingSegmentInput
extends java.lang.Object
implements io.nosqlbench.engine.api.activityapi.input.Input
This cycle value supplier blocks the caller, only letting it complete
for each value that is set from the controlling producer. This is just
for testing. The convenience notify methods are to make tests more obvious.
-
Constructor Summary
Constructors Constructor Description BlockingSegmentInput() -
Method Summary
Modifier and Type Method Description io.nosqlbench.engine.api.activityapi.cyclelog.buffers.results.CycleSegmentgetInputSegment(int segmentLength)voidpublishSegment(long... cycleValues)java.lang.StringtoString()
-
Constructor Details
-
BlockingSegmentInput
public BlockingSegmentInput()
-
-
Method Details
-
getInputSegment
public io.nosqlbench.engine.api.activityapi.cyclelog.buffers.results.CycleSegment getInputSegment(int segmentLength)- Specified by:
getInputSegmentin interfaceio.nosqlbench.engine.api.activityapi.input.Input
-
publishSegment
public void publishSegment(long... cycleValues) -
toString
public java.lang.String toString()- Overrides:
toStringin classjava.lang.Object
-