com.sun.enterprise.v3.common
Class BooleanLatch
java.lang.Object
java.util.concurrent.locks.AbstractOwnableSynchronizer
java.util.concurrent.locks.AbstractQueuedSynchronizer
com.sun.enterprise.v3.common.BooleanLatch
- All Implemented Interfaces:
- Serializable
public class BooleanLatch
- extends AbstractQueuedSynchronizer
Acts like a CountDownLatch except that it only requires a single signal to fire.
Because a latch is non-exclusive, it uses the shared acquire and release methods.
- Author:
- Jerome Dochez
- See Also:
- Serialized Form
| Methods inherited from class java.util.concurrent.locks.AbstractQueuedSynchronizer |
acquire, acquireInterruptibly, acquireShared, acquireSharedInterruptibly, compareAndSetState, getExclusiveQueuedThreads, getFirstQueuedThread, getQueuedThreads, getQueueLength, getSharedQueuedThreads, getState, getWaitingThreads, getWaitQueueLength, hasContended, hasQueuedThreads, hasWaiters, isHeldExclusively, isQueued, owns, release, releaseShared, setState, toString, tryAcquire, tryAcquireNanos, tryAcquireSharedNanos, tryRelease |
BooleanLatch
public BooleanLatch()
isSignalled
public boolean isSignalled()
tryAcquireShared
public int tryAcquireShared(int ignore)
- Overrides:
tryAcquireShared in class AbstractQueuedSynchronizer
tryReleaseShared
public boolean tryReleaseShared(int ignore)
- Overrides:
tryReleaseShared in class AbstractQueuedSynchronizer
Copyright © 2012. All Rights Reserved.