protected class TNonblockingServer.SelectThread
extends java.lang.Thread
Constructor and Description |
---|
TNonblockingServer.SelectThread(TNonblockingServerTransport serverTransport)
Set up the SelectorThread.
|
Modifier and Type | Method and Description |
---|---|
boolean |
isStopped() |
void |
requestSelectInterestChange(TNonblockingServer.FrameBuffer frameBuffer)
Add FrameBuffer to the list of select interest changes and wake up the
selector if it's blocked.
|
void |
run()
The work loop.
|
void |
wakeupSelector()
If the selector is blocked, wake it up.
|
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 TNonblockingServer.SelectThread(TNonblockingServerTransport serverTransport) throws java.io.IOException
java.io.IOException
public boolean isStopped()
public void run()
run
in interface java.lang.Runnable
run
in class java.lang.Thread
public void wakeupSelector()
public void requestSelectInterestChange(TNonblockingServer.FrameBuffer frameBuffer)