java.lang.Object
java.util.concurrent.locks.AbstractQueuedSynchronizer
- All Implemented Interfaces:
- Serializable
- See Also:
- Top Examples,
CountDownLatch
, LockSupport
, Queue
, hasContended()
, hasQueuedThreads()
, getFirstQueuedThread()
, UnsupportedOperationException
, tryReleaseShared(int)
, tryAcquireShared(int)
, tryRelease(int)
, tryAcquire(int)
, acquire(int)
, release(int)
, isHeldExclusively()
, Condition
, AbstractQueuedSynchronizer.ConditionObject
, ReadWriteLock
, acquireInterruptibly(int)
, compareAndSetState(int, int)
, setState(int)
, getState()
protected AbstractQueuedSynchronizer()
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public final void acquire(int arg)
- See Also:
tryAcquire(int)
, Lock.lock()
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public final void acquireInterruptibly(int arg)
throws InterruptedException
- See Also:
-
tryAcquire(int)
, Lock.lockInterruptibly()
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public final void acquireShared(int arg)
- See Also:
tryAcquireShared(int)
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public final void acquireSharedInterruptibly(int arg)
throws InterruptedException
- See Also:
-
tryAcquireShared(int)
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
protected final boolean compareAndSetState(int expect,
int update)
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public final Collection<Thread> getExclusiveQueuedThreads()
- See Also:
getQueuedThreads()
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public final Thread getFirstQueuedThread()
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public final Collection<Thread> getQueuedThreads()
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public final int getQueueLength()
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public final Collection<Thread> getSharedQueuedThreads()
- See Also:
getQueuedThreads()
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
protected final int getState()
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public final Collection<Thread> getWaitingThreads(AbstractQueuedSynchronizer.ConditionObject condition)
- See Also:
- NullPointerException, IllegalArgumentException, IllegalMonitorStateException
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public final int getWaitQueueLength(AbstractQueuedSynchronizer.ConditionObject condition)
- See Also:
- NullPointerException, IllegalArgumentException, IllegalMonitorStateException
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public final boolean hasContended()
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public final boolean hasQueuedThreads()
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public final boolean hasWaiters(AbstractQueuedSynchronizer.ConditionObject condition)
- See Also:
- NullPointerException, IllegalArgumentException, IllegalMonitorStateException
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
protected boolean isHeldExclusively()
- See Also:
- UnsupportedOperationException,
AbstractQueuedSynchronizer.ConditionObject
, release(int)
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public final boolean isQueued(Thread thread)
- See Also:
- NullPointerException
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public final boolean owns(AbstractQueuedSynchronizer.ConditionObject condition)
- See Also:
- NullPointerException
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public final boolean release(int arg)
- See Also:
tryRelease(int)
, Lock.unlock()
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public final boolean releaseShared(int arg)
- See Also:
tryReleaseShared(int)
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
protected final void setState(int newState)
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public String toString()
- See Also:
- Object,
getState()
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
protected boolean tryAcquire(int arg)
- See Also:
- UnsupportedOperationException, IllegalMonitorStateException,
Lock.tryLock()
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public final boolean tryAcquireNanos(int arg,
long nanosTimeout)
throws InterruptedException
- See Also:
-
tryAcquire(int)
, Lock.tryLock(long, TimeUnit)
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
protected int tryAcquireShared(int arg)
- See Also:
- UnsupportedOperationException, IllegalMonitorStateException
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public final boolean tryAcquireSharedNanos(int arg,
long nanosTimeout)
throws InterruptedException
- See Also:
-
tryAcquireShared(int)
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
protected boolean tryRelease(int arg)
- See Also:
- UnsupportedOperationException, IllegalMonitorStateException
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
protected boolean tryReleaseShared(int arg)
- See Also:
- UnsupportedOperationException, IllegalMonitorStateException
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples