Class BlockingSegmentInput

  • All Implemented Interfaces:
    io.engineblock.activityapi.input.Input

    public class BlockingSegmentInput
    extends java.lang.Object
    implements io.engineblock.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.
    • Method Summary

      Modifier and Type Method Description
      io.engineblock.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.engineblock.activityapi.input.Input

        isContiguous
    • Constructor Detail

      • BlockingSegmentInput

        public BlockingSegmentInput()
    • Method Detail

      • getInputSegment

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

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

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