static final class BlockingIO.IOSelector
extends java.lang.Object
implements java.lang.Runnable
| Modifier and Type | Field and Description |
|---|---|
private java.util.concurrent.ConcurrentLinkedQueue<BlockingIO.IOChannel> |
registrationQueue |
private java.nio.channels.Selector |
selector |
| Constructor and Description |
|---|
IOSelector(java.nio.channels.spi.SelectorProvider provider) |
| Modifier and Type | Method and Description |
|---|---|
(package private) BlockingIO.Condition |
add(java.nio.channels.Channel channel,
int ops,
java.lang.Object monitor) |
void |
await(java.nio.channels.Channel channel,
int op) |
void |
run() |
private final java.nio.channels.Selector selector
private final java.util.concurrent.ConcurrentLinkedQueue<BlockingIO.IOChannel> registrationQueue
public IOSelector(java.nio.channels.spi.SelectorProvider provider)
throws java.io.IOException
java.io.IOExceptionpublic void run()
run in interface java.lang.RunnableBlockingIO.Condition add(java.nio.channels.Channel channel, int ops, java.lang.Object monitor)
public void await(java.nio.channels.Channel channel,
int op)
throws java.lang.InterruptedException
java.lang.InterruptedException