public class InfinitySemaphoreLatch extends AbstractQueuedSynchronizer
AbstractQueuedSynchronizer.ConditionObject| Constructor and Description |
|---|
InfinitySemaphoreLatch() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
acquire() |
boolean |
acquireAmount(int amount) |
boolean |
awaitUninterruptibly() |
void |
close() |
boolean |
isClosed() |
boolean |
isOpened() |
void |
release() |
String |
toString() |
int |
tryAcquireShared(int ignored) |
boolean |
tryReleaseShared(int state) |
acquire, acquireInterruptibly, acquireShared, acquireSharedInterruptibly, compareAndSetState, getExclusiveQueuedThreads, getFirstQueuedThread, getQueuedThreads, getQueueLength, getSharedQueuedThreads, getState, getWaitingThreads, getWaitQueueLength, hasContended, hasQueuedPredecessors, hasQueuedThreads, hasWaiters, isHeldExclusively, isQueued, owns, release, releaseShared, setState, tryAcquire, tryAcquireNanos, tryAcquireSharedNanos, tryReleasegetExclusiveOwnerThread, setExclusiveOwnerThreadpublic final int tryAcquireShared(int ignored)
tryAcquireShared in class AbstractQueuedSynchronizerpublic final boolean tryReleaseShared(int state)
tryReleaseShared in class AbstractQueuedSynchronizerpublic final boolean acquireAmount(int amount)
public final boolean acquire()
public final void release()
public boolean isOpened()
public boolean isClosed()
public void close()
public final boolean awaitUninterruptibly()
public String toString()
toString in class AbstractQueuedSynchronizerCopyright © 2014–2018 The Redisson Project. All rights reserved.