Class CountDownLatch.Sync

All Implemented Interfaces:
Awaitable, CountDownLatch
Enclosing interface:
CountDownLatch

public static final class CountDownLatch.Sync extends Awaitable.SyncAwaitable implements CountDownLatch
  • Constructor Details

    • Sync

      public Sync(int count)
  • Method Details

    • decrement

      public void decrement()
      Description copied from interface: CountDownLatch
      Count down by 1, signalling waiters if we have reached zero
      Specified by:
      decrement in interface CountDownLatch
    • count

      public int count()
      Specified by:
      count in interface CountDownLatch
      Returns:
      the current count
    • isSignalled

      protected boolean isSignalled()
      not synchronized as only intended for internal usage by externally synchronized methods
      Specified by:
      isSignalled in class Awaitable.SyncAwaitable