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 Condition
InterruptedException
public void awaitUninterruptibly()
awaitUninterruptibly
in interface Condition
public long awaitNanos(long nanosTimeout) throws InterruptedException
awaitNanos
in interface Condition
InterruptedException
public boolean await(long time, TimeUnit unit) throws InterruptedException
System.nanoTime()
await
in interface Condition
InterruptedException
public boolean awaitUntil(Date deadline) throws InterruptedException
awaitUntil
in interface Condition
InterruptedException
protected void await(boolean throwInterrupt) throws InterruptedException
InterruptedException
protected long await(long nanoSeconds) throws InterruptedException
InterruptedException
protected void signaled()
Copyright © 2012 JBoss by Red Hat. All Rights Reserved.