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.CycleSegment getInputSegment​(int segmentLength)  
    void publishSegment​(long... cycleValues)  
    java.lang.String toString()  

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait

    Methods inherited from interface io.nosqlbench.engine.api.activityapi.input.Input

    isContiguous
  • Constructor Details

  • Method Details

    • getInputSegment

      public io.nosqlbench.engine.api.activityapi.cyclelog.buffers.results.CycleSegment getInputSegment​(int segmentLength)
      Specified by:
      getInputSegment in interface io.nosqlbench.engine.api.activityapi.input.Input
    • publishSegment

      public void publishSegment​(long... cycleValues)
    • toString

      public java.lang.String toString()
      Overrides:
      toString in class java.lang.Object