protected class TDisruptorServer.AcceptorThread extends TDisruptorServer.AbstractSelectorThread
Thread.State, Thread.UncaughtExceptionHandlerselectorMAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY| Constructor and Description |
|---|
TDisruptorServer.AcceptorThread(String name,
org.apache.thrift.transport.TNonblockingServerTransport serverTransport)
Set up the thread that will handle the non-blocking accepts.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
processKey(SelectionKey key)
Process each individual key that reported ready state
|
protected void |
selectorIterationComplete()
Called after each selector event loop completion, useful for booking (e.g.
|
cleanupSelectionKey, isStopped, run, wakeupSelectoractiveCount, 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 TDisruptorServer.AcceptorThread(String name, org.apache.thrift.transport.TNonblockingServerTransport serverTransport) throws IOException
IOExceptionprotected void processKey(SelectionKey key) throws IOException
TDisruptorServer.AbstractSelectorThreadprocessKey in class TDisruptorServer.AbstractSelectorThreadkey - The key to processIOException - any I/O related errorprotected void selectorIterationComplete()
TDisruptorServer.AbstractSelectorThreadselectorIterationComplete in class TDisruptorServer.AbstractSelectorThreadCopyright © 2013. All Rights Reserved.