Serializable
public class InfinitySemaphoreLatch extends AbstractQueuedSynchronizer
AbstractQueuedSynchronizer.ConditionObject
Constructor | Description |
---|---|
InfinitySemaphoreLatch() |
Modifier and Type | Method | 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) |
getExclusiveOwnerThread, setExclusiveOwnerThread
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
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 boolean isClosed()
public void close()
public final boolean awaitUninterruptibly()
public String toString()
toString
in class AbstractQueuedSynchronizer
Copyright © 2014–2018 The Redisson Project. All rights reserved.