Interface Output
- All Superinterfaces:
AutoCloseable
- All Known Implementing Classes:
ContiguousOutputChunker,CycleLogOutput,CycleResultsRLEBufferTarget,LoggingOutput,ReorderingConcurrentResultBuffer
A cycle output is simply a type that knows how to do something
useful with the result of a particular cycle.
Outputs are required to be thread-safe.
-
Method Summary
Modifier and TypeMethodDescriptiondefault voidclose()booleanonCycleResult(long completedCycle, int result) Mark the result of the numbered cycle with an integer value.default booleanonCycleResult(CycleResult result) default voidonCycleResultSegment(CycleResultsSegment segment)
-
Method Details
-
onCycleResult
boolean onCycleResult(long completedCycle, int result) Mark the result of the numbered cycle with an integer value. The meaning of the value provided is contextual to the way it is used. (Each process will have its own status tables, etc.)- Parameters:
completedCycle- The cycle number being marked.result- the result ordinal- Returns:
- true on success, false if the marking should be retried differently
-
onCycleResult
-
onCycleResultSegment
-
close
- Specified by:
closein interfaceAutoCloseable- Throws:
Exception
-