static final class BlockingIO.IOChannel
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
(package private) java.nio.channels.SelectableChannel |
channel |
private boolean |
interrupted |
private java.lang.Object |
monitor |
(package private) int |
ops |
private boolean |
ready |
private boolean |
woken |
| Constructor and Description |
|---|
IOChannel(java.nio.channels.SelectableChannel channel,
int ops,
java.lang.Object monitor) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
await() |
boolean |
await(long timeout,
java.util.concurrent.TimeUnit unit) |
void |
interrupt() |
void |
wakeup(boolean ready) |
final java.nio.channels.SelectableChannel channel
final int ops
private final java.lang.Object monitor
private boolean woken
private boolean ready
private boolean interrupted
IOChannel(java.nio.channels.SelectableChannel channel,
int ops,
java.lang.Object monitor)
public final void wakeup(boolean ready)
public final void interrupt()
public final boolean await()
throws java.lang.InterruptedException
java.lang.InterruptedExceptionpublic final boolean await(long timeout,
java.util.concurrent.TimeUnit unit)
throws java.lang.InterruptedException
java.lang.InterruptedException