Name
AbstractQueuedSynchronizer.ConditionObject
Synopsis
This
class
implements the Condition
interface and is suitable
for use with an AbstractQueuedSynchronizer
.
public class AbstractQueuedSynchronizer.ConditionObject implements Condition, Serializable { // Public Constructors public ConditionObject( ); // Methods Implementing Condition public final void await( ) throws InterruptedException; public final boolean await(long time, java.util.concurrent.TimeUnit unit) throws InterruptedException; public final long awaitNanos(long nanosTimeout) throws InterruptedException; public final void awaitUninterruptibly( ); public final boolean awaitUntil(java.util.Date deadline) throws InterruptedException; public final void signal( ); public final void signalAll( ); // Protected Instance Methods protected final java.util.Collection<Thread> getWaitingThreads( ); protected final int getWaitQueueLength( ); protected final boolean hasWaiters( ); }
Passed To
AbstractQueuedSynchronizer.{getWaitingThreads( )
,
getWaitQueueLength( )
, hasWaiters(
)
, owns( )}
Get Java in a Nutshell, 5th Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.