private class AbstractTcpListener.AcceptThread extends Thread
AbstractTcpListener.serverSocketChannels
.Thread.State, Thread.UncaughtExceptionHandler
Modifier and Type | Field and Description |
---|---|
private Selector |
selector
The Selector used to select a specific
ServerSocketChannel which is ready to accept.
|
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
Constructor and Description |
---|
AcceptThread()
Initializes a new AcceptThread.
|
Modifier and Type | Method and Description |
---|---|
private void |
notifyReadThread()
Notifies
AbstractTcpListener.readThread that new channels have been added. |
void |
run() |
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
private final Selector selector
public AcceptThread() throws IOException
IOException
private void notifyReadThread()
AbstractTcpListener.readThread
that new channels have been added.Copyright © 2018. All rights reserved.