Interface CountDownLatch

All Superinterfaces:
Awaitable
All Known Implementing Classes:
CountDownLatch.Async, CountDownLatch.Sync

public interface CountDownLatch extends Awaitable
  • Method Details

    • decrement

      void decrement()
      Count down by 1, signalling waiters if we have reached zero
    • count

      int count()
      Returns:
      the current count
    • newCountDownLatch

      static CountDownLatch newCountDownLatch(int count)
      Factory method used to capture and redirect instantiations for simulation