Build m5-rc15

java.util.concurrent.locks
Class AbstractQueuedSynchronizer

java.lang.Object
  extended by java.util.concurrent.locks.AbstractQueuedSynchronizer
All Implemented Interfaces:
Serializable

public abstract class AbstractQueuedSynchronizer
extends Object
implements Serializable

See Also:
Serialized Form

Nested Class Summary
 class AbstractQueuedSynchronizer.ConditionObject
           
 
Constructor Summary
protected AbstractQueuedSynchronizer()
           
 
Method Summary
 void acquire(int arg)
           
 void acquireInterruptibly(int arg)
           
 void acquireShared(int arg)
           
 void acquireSharedInterruptibly(int arg)
           
protected  boolean compareAndSetState(int expect, int update)
           
 Collection getExclusiveQueuedThreads()
           
 Thread getFirstQueuedThread()
           
 Collection getQueuedThreads()
           
 int getQueueLength()
           
 Collection getSharedQueuedThreads()
           
protected  int getState()
           
 Collection getWaitingThreads(AbstractQueuedSynchronizer.ConditionObject condition)
           
 int getWaitQueueLength(AbstractQueuedSynchronizer.ConditionObject condition)
           
 boolean hasContended()
           
 boolean hasQueuedThreads()
           
 boolean hasWaiters(AbstractQueuedSynchronizer.ConditionObject condition)
           
protected  boolean isHeldExclusively()
           
 boolean isQueued(Thread thread)
           
 boolean owns(AbstractQueuedSynchronizer.ConditionObject condition)
           
 boolean release(int arg)
           
 boolean releaseShared(int arg)
           
protected  void setState(int newState)
           
 String toString()
           
protected  boolean tryAcquire(int arg)
           
 boolean tryAcquireNanos(int arg, long nanosTimeout)
           
protected  int tryAcquireShared(int arg)
           
 boolean tryAcquireSharedNanos(int arg, long nanosTimeout)
           
protected  boolean tryRelease(int arg)
           
protected  boolean tryReleaseShared(int arg)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AbstractQueuedSynchronizer

protected AbstractQueuedSynchronizer()
Method Detail

getState

protected final int getState()

setState

protected final void setState(int newState)

compareAndSetState

protected final boolean compareAndSetState(int expect,
                                           int update)

tryAcquire

protected boolean tryAcquire(int arg)

tryRelease

protected boolean tryRelease(int arg)

tryAcquireShared

protected int tryAcquireShared(int arg)

tryReleaseShared

protected boolean tryReleaseShared(int arg)

isHeldExclusively

protected boolean isHeldExclusively()

acquire

public final void acquire(int arg)

acquireInterruptibly

public final void acquireInterruptibly(int arg)
                                throws InterruptedException
Throws:
InterruptedException

tryAcquireNanos

public final boolean tryAcquireNanos(int arg,
                                     long nanosTimeout)
                              throws InterruptedException
Throws:
InterruptedException

release

public final boolean release(int arg)

acquireShared

public final void acquireShared(int arg)

acquireSharedInterruptibly

public final void acquireSharedInterruptibly(int arg)
                                      throws InterruptedException
Throws:
InterruptedException

tryAcquireSharedNanos

public final boolean tryAcquireSharedNanos(int arg,
                                           long nanosTimeout)
                                    throws InterruptedException
Throws:
InterruptedException

releaseShared

public final boolean releaseShared(int arg)

hasQueuedThreads

public final boolean hasQueuedThreads()

hasContended

public final boolean hasContended()

getFirstQueuedThread

public final Thread getFirstQueuedThread()

isQueued

public final boolean isQueued(Thread thread)

getQueueLength

public final int getQueueLength()

getQueuedThreads

public final Collection getQueuedThreads()

getExclusiveQueuedThreads

public final Collection getExclusiveQueuedThreads()

getSharedQueuedThreads

public final Collection getSharedQueuedThreads()

toString

public String toString()
Overrides:
toString in class Object

owns

public final boolean owns(AbstractQueuedSynchronizer.ConditionObject condition)

hasWaiters

public final boolean hasWaiters(AbstractQueuedSynchronizer.ConditionObject condition)

getWaitQueueLength

public final int getWaitQueueLength(AbstractQueuedSynchronizer.ConditionObject condition)

getWaitingThreads

public final Collection getWaitingThreads(AbstractQueuedSynchronizer.ConditionObject condition)

Build m5-rc15

Please submit a feedback, bug or feature