Class AbstractLatch.CountSync

  • All Implemented Interfaces:
    java.io.Serializable
    Enclosing class:
    AbstractLatch

    protected static class AbstractLatch.CountSync
    extends java.util.concurrent.locks.AbstractQueuedSynchronizer
    Look at the doc and examples provided by AbstractQueuedSynchronizer for more information
    See Also:
    AbstractQueuedSynchronizer, Serialized Form
    • Nested Class Summary

      • Nested classes/interfaces inherited from class java.util.concurrent.locks.AbstractQueuedSynchronizer

        java.util.concurrent.locks.AbstractQueuedSynchronizer.ConditionObject
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void add()  
      int getCount()  
      void setCount​(int count)  
      int tryAcquireShared​(int numberOfAqcquires)  
      boolean tryReleaseShared​(int numberOfReleases)  
      • Methods inherited from class java.util.concurrent.locks.AbstractQueuedSynchronizer

        acquire, acquireInterruptibly, acquireShared, acquireSharedInterruptibly, compareAndSetState, getExclusiveQueuedThreads, getFirstQueuedThread, getQueuedThreads, getQueueLength, getSharedQueuedThreads, getState, getWaitingThreads, getWaitQueueLength, hasContended, hasQueuedPredecessors, hasQueuedThreads, hasWaiters, isHeldExclusively, isQueued, owns, release, releaseShared, setState, toString, tryAcquire, tryAcquireNanos, tryAcquireSharedNanos, tryRelease
      • Methods inherited from class java.util.concurrent.locks.AbstractOwnableSynchronizer

        getExclusiveOwnerThread, setExclusiveOwnerThread
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Method Detail

      • getCount

        public int getCount()
      • setCount

        public void setCount​(int count)
      • tryAcquireShared

        public int tryAcquireShared​(int numberOfAqcquires)
        Overrides:
        tryAcquireShared in class java.util.concurrent.locks.AbstractQueuedSynchronizer
      • add

        public void add()
      • tryReleaseShared

        public boolean tryReleaseShared​(int numberOfReleases)
        Overrides:
        tryReleaseShared in class java.util.concurrent.locks.AbstractQueuedSynchronizer