public class ReorderingConcurrentResultBuffer extends Object implements Output, CanFilterResultValue
| Constructor and Description |
|---|
ReorderingConcurrentResultBuffer(Output downstream) |
ReorderingConcurrentResultBuffer(Output downstream,
int threshold) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
boolean |
onCycleResult(long completedCycle,
int result)
Mark the result of the numbered cycle with an integer value.
|
void |
onCycleResultSegment(CycleResultsSegment segment) |
void |
setFilter(Predicate<ResultReadable> filter) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitonCycleResultpublic ReorderingConcurrentResultBuffer(Output downstream)
public ReorderingConcurrentResultBuffer(Output downstream, int threshold)
public boolean onCycleResult(long completedCycle,
int result)
OutputonCycleResult in interface OutputcompletedCycle - The cycle number being marked.result - the result ordinalpublic void onCycleResultSegment(CycleResultsSegment segment)
onCycleResultSegment in interface Outputpublic void close()
throws Exception
close in interface Outputclose in interface AutoCloseableExceptionpublic void setFilter(Predicate<ResultReadable> filter)
setFilter in interface CanFilterResultValueCopyright © 2018. All rights reserved.