Package com.yahoo.concurrent
Interface EventBarrier.BarrierWaiter
- Enclosing class:
- EventBarrier
public static interface EventBarrier.BarrierWaiter
Declares the interface required to wait for the detection of a
minimal event barrier. An object that implements this is passed
to the
EventBarrier.startBarrier(BarrierWaiter)
.-
Method Summary
Modifier and TypeMethodDescriptionvoid
Callback invoked by the thread that detected the minimal event barrier.
-
Method Details
-
completeBarrier
void completeBarrier()Callback invoked by the thread that detected the minimal event barrier. Once this is called, all events taking place at or before the corresponding call toEventBarrier.startBarrier(BarrierWaiter)
have ended.
-