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, yieldpublic void connect()
throws java.io.IOException
java.io.IOExceptionpublic void close()
throws java.io.IOException,
java.lang.InterruptedException
java.io.IOExceptionjava.lang.InterruptedExceptionprotected void wakeupSelector()
protected void setupSelectorOptions()
protected void accept(java.nio.channels.SelectionKey key)
throws java.io.IOException
java.io.IOExceptionprotected void cancel(NioEndpoint p) throws java.io.IOException
java.io.IOExceptionprotected void cancel(java.nio.channels.SelectionKey key,
java.nio.channels.SocketChannel c)
throws java.io.IOException
java.io.IOExceptionprotected void read(java.nio.channels.SelectionKey key)
throws java.io.IOException
java.io.IOExceptionprotected void write(java.nio.channels.SelectionKey key)
throws java.io.IOException
java.io.IOExceptionprotected void select()
throws java.io.IOException
java.io.IOExceptionpublic void run()
run in interface java.lang.Runnablerun in class java.lang.Thread