public class InfinitySemaphoreLatch extends AbstractQueuedSynchronizer
AbstractQueuedSynchronizer.ConditionObject
Constructor and Description |
---|
InfinitySemaphoreLatch() |
Modifier and Type | Method and Description |
---|---|
boolean |
acquire() |
boolean |
acquireAmount(int amount) |
boolean |
closeAndAwaitUninterruptibly() |
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, tryRelease
getExclusiveOwnerThread, setExclusiveOwnerThread
public final int tryAcquireShared(int ignored)
tryAcquireShared
in class AbstractQueuedSynchronizer
public final boolean tryReleaseShared(int state)
tryReleaseShared
in class AbstractQueuedSynchronizer
public final boolean acquireAmount(int amount)
public final boolean acquire()
public final void release()
public boolean isOpened()
public final boolean closeAndAwaitUninterruptibly()
public String toString()
toString
in class AbstractQueuedSynchronizer
Copyright © 2014–2015. All rights reserved.