public abstract class BaseServer.SocketRequestHandler extends SafeThread
Thread.State, Thread.UncaughtExceptionHandler| Modifier and Type | Field and Description |
|---|---|
protected WrappedSocketConnection |
connection |
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY| Constructor and Description |
|---|
SocketRequestHandler(WrappedSocketConnection connection) |
| Modifier and Type | Method and Description |
|---|---|
void |
doTerminate() |
abstract long |
getTotalNumberOfRequests() |
protected abstract void |
handleRequests() |
protected boolean |
isUnexpectedError(Exception ex) |
protected abstract void |
reportUnexpectedError(Exception ex) |
protected void |
runInt() |
interrupt, isFinished, isTerminateRequested, run, terminate, terminateAndWaitForFinish, waitForFinish, waitForFinish, wasStartedactiveCount, checkAccess, clone, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, toString, yieldprotected WrappedSocketConnection connection
public SocketRequestHandler(WrappedSocketConnection connection) throws IOException
IOExceptionprotected abstract void reportUnexpectedError(Exception ex)
protected void runInt()
runInt in class SafeThreadpublic void doTerminate()
doTerminate in class SafeThreadprotected boolean isUnexpectedError(Exception ex)
public abstract long getTotalNumberOfRequests()
Copyright © 2015. All rights reserved.