Class BlockingSegmentInput
- java.lang.Object
-
- io.engineblock.activitycore.fortesting.BlockingSegmentInput
-
- All Implemented Interfaces:
io.engineblock.activityapi.input.Input
public class BlockingSegmentInput extends java.lang.Object implements io.engineblock.activityapi.input.InputThis 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.engineblock.activityapi.cyclelog.buffers.results.CycleSegmentgetInputSegment(int segmentLength)voidpublishSegment(long... cycleValues)java.lang.StringtoString()
-
-
-
Method Detail
-
getInputSegment
public io.engineblock.activityapi.cyclelog.buffers.results.CycleSegment getInputSegment(int segmentLength)
- Specified by:
getInputSegmentin interfaceio.engineblock.activityapi.input.Input
-
publishSegment
public void publishSegment(long... cycleValues)
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-