Class CycleResultSegmentBuffer
- java.lang.Object
-
- io.engineblock.activityapi.cyclelog.buffers.results.CycleResultSegmentBuffer
-
public class CycleResultSegmentBuffer extends java.lang.ObjectImplements a cycle result segment in a basic buffer that contains the cycle and the result in long, byte format. This is not thread safe.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceCycleResultSegmentBuffer.Sink
-
Constructor Summary
Constructors Constructor Description CycleResultSegmentBuffer(int resultCount)CycleResultSegmentBuffer(CycleResultSegmentBuffer.Sink sink, int resultCount)
-
Method Summary
Modifier and Type Method Description voidappend(long cycle, int result)voidappend(CycleResult result)booleanhasRemaining()CycleResultsSegmenttoReader()
-
-
-
Constructor Detail
-
CycleResultSegmentBuffer
public CycleResultSegmentBuffer(CycleResultSegmentBuffer.Sink sink, int resultCount)
-
CycleResultSegmentBuffer
public CycleResultSegmentBuffer(int resultCount)
-
-
Method Detail
-
append
public void append(long cycle, int result)
-
append
public void append(CycleResult result)
-
toReader
public CycleResultsSegment toReader()
-
hasRemaining
public boolean hasRemaining()
-
-