Class AbstractLatch.CountSync
- java.lang.Object
-
- java.util.concurrent.locks.AbstractOwnableSynchronizer
-
- java.util.concurrent.locks.AbstractQueuedSynchronizer
-
- org.apache.activemq.artemis.utils.AbstractLatch.CountSync
-
- All Implemented Interfaces:
java.io.Serializable
- Enclosing class:
- AbstractLatch
protected static class AbstractLatch.CountSync extends java.util.concurrent.locks.AbstractQueuedSynchronizerLook at the doc and examples provided by AbstractQueuedSynchronizer for more information- See Also:
AbstractQueuedSynchronizer, Serialized Form
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidadd()intgetCount()voidsetCount(int count)inttryAcquireShared(int numberOfAqcquires)booleantryReleaseShared(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
-
-
-
-
Method Detail
-
getCount
public int getCount()
-
setCount
public void setCount(int count)
-
tryAcquireShared
public int tryAcquireShared(int numberOfAqcquires)
- Overrides:
tryAcquireSharedin classjava.util.concurrent.locks.AbstractQueuedSynchronizer
-
add
public void add()
-
tryReleaseShared
public boolean tryReleaseShared(int numberOfReleases)
- Overrides:
tryReleaseSharedin classjava.util.concurrent.locks.AbstractQueuedSynchronizer
-
-