public class BuckEventOrderer<T extends BuckEvent> extends Object implements AutoCloseable
BuckEvents by the BuckEvent.getNanoTime() value. This is used to serialize
events coming in from multiple threads.| Constructor and Description |
|---|
BuckEventOrderer(java.util.function.Consumer<T> eventSinkFunction,
long maximumSkew,
TimeUnit maximumSkewUnit) |
public BuckEventOrderer(java.util.function.Consumer<T> eventSinkFunction, long maximumSkew, TimeUnit maximumSkewUnit)
eventSinkFunction - events for which we've determined ordering are dispatched here.maximumSkew - this is how many eventspublic void add(T buckEvent)
public void close()
close in interface AutoCloseable