Class MutableCycleResult
- java.lang.Object
-
- io.engineblock.activityapi.cyclelog.buffers.results.MutableCycleResult
-
- All Implemented Interfaces:
CycleReadable,CycleResult,ResultReadable,java.lang.Comparable<CycleResult>
public class MutableCycleResult extends java.lang.Object implements CycleResult
-
-
Constructor Summary
Constructors Constructor Description MutableCycleResult(long cycle, int result)MutableCycleResult(long cycle, int result, long startTimeNanos)MutableCycleResult(long cycle, int result, long startTimeNanos, long schedulingDelay)
-
Method Summary
Modifier and Type Method Description longgetCycle()get the cycle number associated with this element.longgetEndTimeNanos()longgetOpNanos()intgetResult()Get a result associated with some operation, according to the activity-specific result maplonggetStartTimeNanos()voidsetEndTimeNanos(long endTimeNanos)voidsetResult(int result)voidsetStartTimeNanos(long startTimeNanos)java.lang.StringtoString()-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface io.engineblock.activityapi.cyclelog.buffers.results.CycleResult
compareTo
-
-
-
-
Method Detail
-
getCycle
public long getCycle()
Description copied from interface:CycleReadableget the cycle number associated with this element.- Specified by:
getCyclein interfaceCycleReadable- Returns:
- a cycle number
-
getResult
public int getResult()
Description copied from interface:ResultReadableGet a result associated with some operation, according to the activity-specific result map- Specified by:
getResultin interfaceResultReadable- Returns:
- an activity-specific result code
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
setResult
public void setResult(int result)
-
getStartTimeNanos
public long getStartTimeNanos()
-
setStartTimeNanos
public void setStartTimeNanos(long startTimeNanos)
-
getEndTimeNanos
public long getEndTimeNanos()
-
setEndTimeNanos
public void setEndTimeNanos(long endTimeNanos)
-
getOpNanos
public long getOpNanos()
-
-