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
- Author:
- Luis Barreiro
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class java.util.concurrent.locks.AbstractQueuedLongSynchronizer
AbstractQueuedLongSynchronizer.ConditionObject -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionlonggetStamp()voidprotected 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, tryReleaseSharedMethods inherited from class java.util.concurrent.locks.AbstractOwnableSynchronizer
getExclusiveOwnerThread, setExclusiveOwnerThread
-
Constructor Details
-
AgroalSynchronizer
public AgroalSynchronizer()
-
-
Method Details
-
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()
-