public static final class BlockingIO.Condition
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
private BlockingIO.IOChannel |
channel |
| Constructor and Description |
|---|
Condition(BlockingIO.IOChannel channel) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
await() |
boolean |
await(long timeout,
java.util.concurrent.TimeUnit unit) |
void |
cancel() |
void |
interrupt() |
private final BlockingIO.IOChannel channel
Condition(BlockingIO.IOChannel channel)
public void cancel()
public void interrupt()
public boolean await()
throws java.lang.InterruptedException
java.lang.InterruptedExceptionpublic boolean await(long timeout,
java.util.concurrent.TimeUnit unit)
throws java.lang.InterruptedException
java.lang.InterruptedException