protected class SelectorKernel.SelectorThread
extends java.lang.Thread
Constructor and Description |
---|
SelectorThread() |
Modifier and Type | Method and Description |
---|---|
protected void |
accept(java.nio.channels.SelectionKey key) |
protected void |
cancel(NioEndpoint p) |
protected void |
cancel(java.nio.channels.SelectionKey key,
java.nio.channels.SocketChannel c) |
void |
close() |
void |
connect() |
protected void |
read(java.nio.channels.SelectionKey key) |
void |
run() |
protected void |
select() |
protected void |
setupSelectorOptions() |
protected void |
wakeupSelector() |
protected void |
write(java.nio.channels.SelectionKey key) |
activeCount, checkAccess, clone, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, toString, yield
public void connect() throws java.io.IOException
java.io.IOException
public void close() throws java.io.IOException, java.lang.InterruptedException
java.io.IOException
java.lang.InterruptedException
protected void wakeupSelector()
protected void setupSelectorOptions()
protected void accept(java.nio.channels.SelectionKey key) throws java.io.IOException
java.io.IOException
protected void cancel(NioEndpoint p) throws java.io.IOException
java.io.IOException
protected void cancel(java.nio.channels.SelectionKey key, java.nio.channels.SocketChannel c) throws java.io.IOException
java.io.IOException
protected void read(java.nio.channels.SelectionKey key) throws java.io.IOException
java.io.IOException
protected void write(java.nio.channels.SelectionKey key) throws java.io.IOException
java.io.IOException
protected void select() throws java.io.IOException
java.io.IOException
public void run()
run
in interface java.lang.Runnable
run
in class java.lang.Thread