protected class Locking.ClientCondition
extends java.lang.Object
implements java.util.concurrent.locks.Condition
限定符和类型 | 字段和说明 |
---|---|
protected Locking.ClientLock |
lock |
protected java.util.concurrent.atomic.AtomicReference<java.lang.Thread> |
parker
This is okay only having 1 since a client condition is 1 per
lock_name, thread id combination.
|
protected java.util.concurrent.atomic.AtomicBoolean |
signaled |
构造器和说明 |
---|
Locking.ClientCondition(Locking.ClientLock lock) |
限定符和类型 | 方法和说明 |
---|---|
void |
await() |
protected void |
await(boolean throwInterrupt) |
protected long |
await(long nanoSeconds) |
boolean |
await(long time,
java.util.concurrent.TimeUnit unit)
Note this wait will only work correctly if the converted value is less
than 292 years.
|
long |
awaitNanos(long nanosTimeout) |
void |
awaitUninterruptibly() |
boolean |
awaitUntil(java.util.Date deadline) |
void |
signal() |
void |
signalAll() |
protected void |
signaled() |
protected final Locking.ClientLock lock
protected final java.util.concurrent.atomic.AtomicBoolean signaled
protected volatile java.util.concurrent.atomic.AtomicReference<java.lang.Thread> parker
public Locking.ClientCondition(Locking.ClientLock lock)
public void await() throws java.lang.InterruptedException
await
在接口中 java.util.concurrent.locks.Condition
java.lang.InterruptedException
public void awaitUninterruptibly()
awaitUninterruptibly
在接口中 java.util.concurrent.locks.Condition
public long awaitNanos(long nanosTimeout) throws java.lang.InterruptedException
awaitNanos
在接口中 java.util.concurrent.locks.Condition
java.lang.InterruptedException
public boolean await(long time, java.util.concurrent.TimeUnit unit) throws java.lang.InterruptedException
For more information please see System.nanoTime()
await
在接口中 java.util.concurrent.locks.Condition
java.lang.InterruptedException
public boolean awaitUntil(java.util.Date deadline) throws java.lang.InterruptedException
awaitUntil
在接口中 java.util.concurrent.locks.Condition
java.lang.InterruptedException
protected void await(boolean throwInterrupt) throws java.lang.InterruptedException
java.lang.InterruptedException
protected long await(long nanoSeconds) throws java.lang.InterruptedException
java.lang.InterruptedException
public void signal()
signal
在接口中 java.util.concurrent.locks.Condition
public void signalAll()
signalAll
在接口中 java.util.concurrent.locks.Condition
protected void signaled()