public class SocketAcceptThread extends Thread
Thread.State, Thread.UncaughtExceptionHandler
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
Constructor and Description |
---|
SocketAcceptThread(ConnectionManager connManager,
ServerPort serverPort) |
Modifier and Type | Method and Description |
---|---|
int |
getPort()
Retrieve the port this server socket is bound to.
|
ServerPort |
getServerPort()
Returns information about the port on which the server is listening for connections.
|
void |
run()
About as simple as it gets.
|
void |
shutdown()
Unblock the thread and force it to terminate.
|
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 SocketAcceptThread(ConnectionManager connManager, ServerPort serverPort) throws IOException
IOException
public int getPort()
public ServerPort getServerPort()
public void shutdown()
Copyright © 2003-2008 Jive Software.