|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.lang.ThreadGroup
com.creamtec.ajaxswing.core.AjaxSwingThreadGroup
public class AjaxSwingThreadGroup
AjaxSwing uses its own thread groups to keep track of the threads created by, and of behalf of, the virtual application. It needs it to maintain the association between the thread and the client agent. The thread group also acts as a pool of threads.
Constructor Summary | |
---|---|
AjaxSwingThreadGroup(ClientAgent agent)
Creates a thread group for the given client agent |
Method Summary | |
---|---|
AjaxSwingThread |
allocateThread()
Allocate a thread for the given client |
ClientAgent |
getClientAgent()
Returns the client agent associated with this thread group |
AjaxSwingThread |
getPrimeThread()
Returns the main thread of this thread group |
void |
releaseThread(java.lang.Thread thread)
Puts the thread back into the pool of ready-to-run threads |
void |
setClientAgent(ClientAgent agent)
Sets the client agent associated with this thread group |
void |
setPrimeThread(AjaxSwingThread thread)
Sets the main thread of this thread group |
void |
shutdown()
Stops all threads |
Methods inherited from class java.lang.ThreadGroup |
---|
activeCount, activeGroupCount, allowThreadSuspension, checkAccess, destroy, enumerate, enumerate, enumerate, enumerate, getMaxPriority, getName, getParent, interrupt, isDaemon, isDestroyed, list, parentOf, resume, setDaemon, setMaxPriority, stop, suspend, toString, uncaughtException |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public AjaxSwingThreadGroup(ClientAgent agent)
agent
- ClientAgentMethod Detail |
---|
public ClientAgent getClientAgent()
public void setClientAgent(ClientAgent agent)
agent
- ClientAgentpublic AjaxSwingThread getPrimeThread()
public void setPrimeThread(AjaxSwingThread thread)
thread
- AjaxSwingThreadpublic AjaxSwingThread allocateThread()
public void releaseThread(java.lang.Thread thread)
thread
- Threadpublic void shutdown()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |