| Modifier and Type | Field and Description |
|---|---|
protected Locking.ClientLock |
lock |
protected AtomicReference<Thread> |
parker
This is okay only having 1 since a client condition is 1 per
lock_name, thread id combination.
|
protected AtomicBoolean |
signaled |
| Constructor and Description |
|---|
Locking.ClientCondition(Locking.ClientLock lock) |
| Modifier and Type | Method and Description |
|---|---|
void |
await() |
protected void |
await(boolean throwInterrupt) |
protected long |
await(long nanoSeconds) |
boolean |
await(long time,
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(Date deadline) |
void |
signal() |
void |
signalAll() |
protected void |
signaled() |
protected final Locking.ClientLock lock
protected final AtomicBoolean signaled
protected volatile AtomicReference<Thread> parker
public Locking.ClientCondition(Locking.ClientLock lock)
public void await()
throws InterruptedException
await in interface ConditionInterruptedExceptionpublic void awaitUninterruptibly()
awaitUninterruptibly in interface Conditionpublic long awaitNanos(long nanosTimeout)
throws InterruptedException
awaitNanos in interface ConditionInterruptedExceptionpublic boolean await(long time,
TimeUnit unit)
throws InterruptedException
System.nanoTime()await in interface ConditionInterruptedExceptionpublic boolean awaitUntil(Date deadline) throws InterruptedException
awaitUntil in interface ConditionInterruptedExceptionprotected void await(boolean throwInterrupt)
throws InterruptedException
InterruptedExceptionprotected long await(long nanoSeconds)
throws InterruptedException
InterruptedExceptionprotected void signaled()
Copyright © 2012 JBoss by Red Hat. All Rights Reserved.