Class CountDownLatch.Sync

    • Constructor Detail

      • Sync

        public Sync​(int count)
    • Method Detail

      • 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