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 Type
    Method
    Description
    void
    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 to EventBarrier.startBarrier(BarrierWaiter) have ended.