Package io.agroal.pool.util
Class AgroalSynchronizer
- java.lang.Object
-
- java.util.concurrent.locks.AbstractOwnableSynchronizer
-
- java.util.concurrent.locks.AbstractQueuedLongSynchronizer
-
- io.agroal.pool.util.AgroalSynchronizer
-
- All Implemented Interfaces:
Serializable
public final class AgroalSynchronizer extends AbstractQueuedLongSynchronizer
- Author:
- Luis Barreiro
- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class java.util.concurrent.locks.AbstractQueuedLongSynchronizer
AbstractQueuedLongSynchronizer.ConditionObject
-
-
Constructor Summary
Constructors Constructor Description AgroalSynchronizer()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description longgetStamp()voidreleaseConditional()protected booleantryAcquire(long value)protected booleantryRelease(long releases)-
Methods inherited from class java.util.concurrent.locks.AbstractQueuedLongSynchronizer
acquire, acquireInterruptibly, acquireShared, acquireSharedInterruptibly, compareAndSetState, getExclusiveQueuedThreads, getFirstQueuedThread, getQueuedThreads, getQueueLength, getSharedQueuedThreads, getState, getWaitingThreads, getWaitQueueLength, hasContended, hasQueuedPredecessors, hasQueuedThreads, hasWaiters, isHeldExclusively, isQueued, owns, release, releaseShared, setState, toString, tryAcquireNanos, tryAcquireShared, tryAcquireSharedNanos, tryReleaseShared
-
Methods inherited from class java.util.concurrent.locks.AbstractOwnableSynchronizer
getExclusiveOwnerThread, setExclusiveOwnerThread
-
-
-
-
Method Detail
-
tryAcquire
protected boolean tryAcquire(long value)
- Overrides:
tryAcquirein classAbstractQueuedLongSynchronizer
-
tryRelease
protected boolean tryRelease(long releases)
- Overrides:
tryReleasein classAbstractQueuedLongSynchronizer
-
getStamp
public long getStamp()
-
releaseConditional
public void releaseConditional()
-
-