protected class Locking.ClientCondition
extends java.lang.Object
implements java.util.concurrent.locks.Condition
Modifier and Type | Field and Description |
---|---|
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 |
Constructor and Description |
---|
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,
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 ClientCondition(Locking.ClientLock lock)
public void await() throws java.lang.InterruptedException
await
in interface java.util.concurrent.locks.Condition
java.lang.InterruptedException
public void awaitUninterruptibly()
awaitUninterruptibly
in interface java.util.concurrent.locks.Condition
public long awaitNanos(long nanosTimeout) throws java.lang.InterruptedException
awaitNanos
in interface java.util.concurrent.locks.Condition
java.lang.InterruptedException
public boolean await(long time, java.util.concurrent.TimeUnit unit) throws java.lang.InterruptedException
System.nanoTime()
await
in interface java.util.concurrent.locks.Condition
java.lang.InterruptedException
public boolean awaitUntil(java.util.Date deadline) throws java.lang.InterruptedException
awaitUntil
in interface 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
in interface java.util.concurrent.locks.Condition
public void signalAll()
signalAll
in interface java.util.concurrent.locks.Condition
protected void signaled()
Copyright © 1998-2020 Red Hat. All Rights Reserved.