public class ClientThread
extends java.lang.Thread
ClientHandler
Modifier and Type | Field and Description |
---|---|
protected char |
state
Holds the current Thread state.
|
Constructor and Description |
---|
ClientThread(ClientPool pool) |
ClientThread(ClientPool pool,
int instanceCount) |
Modifier and Type | Method and Description |
---|---|
void |
clean() |
int |
getInstanceId() |
java.lang.Runnable |
getThread()
Returns the
ClientHandler being
run by the ClientThread. |
boolean |
isReady() |
void |
run() |
java.lang.String |
toString()
[ThreadInPool[
|
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, yield
protected volatile char state
U = Unknown
S = Started
R - Running a client
I = Idle
L = Looking for client
P = Was sent back to pool
W = Waiting in pool
N = Was notified, Looking for client
D = Dead
public ClientThread(ClientPool pool)
public ClientThread(ClientPool pool, int instanceCount)
public boolean isReady()
public void clean()
public int getInstanceId()
public void run()
run
in interface java.lang.Runnable
run
in class java.lang.Thread
public java.lang.Runnable getThread()
ClientHandler
being
run by the ClientThread.public java.lang.String toString()
toString
in class java.lang.Thread
Copyright © 2003-2014 QuickServer.org