|
QuickServer v1.4.1 |
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object | +--org.quickserver.util.pool.thread.ClientPool
This is a class for managing the pool of threads for handling clients.
| Field Summary | |
ThreadObjectFactory |
factory
|
| Constructor Summary | |
ClientPool(ObjectPoolConfig opConfig)
|
|
| Method Summary | |
void |
addClient(java.lang.Runnable r)
|
void |
clear()
|
void |
close()
|
protected void |
finalize()
|
java.util.Iterator |
getAllClientThread()
Returns iterator containing all the active threads i.e ClientHandler handling connected clients. |
java.lang.Runnable |
getClient()
|
int |
getNumActive()
Return the number of instances currently borrowed from my pool. |
int |
getNumIdle()
Return the number of instances currently idle in my pool. |
boolean |
isClientAvailable()
|
void |
returnObject(java.lang.Object object)
|
| Methods inherited from class java.lang.Object |
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public ThreadObjectFactory factory
| Constructor Detail |
public ClientPool(ObjectPoolConfig opConfig)
| Method Detail |
public void addClient(java.lang.Runnable r)
public void returnObject(java.lang.Object object)
public java.lang.Runnable getClient()
public boolean isClientAvailable()
protected void finalize()
throws java.lang.Throwable
finalize in class java.lang.Objectjava.lang.Throwable
public void close()
throws java.lang.Exception
java.lang.Exception
public void clear()
throws java.lang.Exception
java.lang.Exceptionpublic int getNumActive()
public int getNumIdle()
public final java.util.Iterator getAllClientThread()
|
QuickServer v1.4.1 |
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||