public class AjaxSwingThreadGroup
extends java.lang.ThreadGroup
Constructor and Description |
---|
AjaxSwingThreadGroup(ClientAgent agent)
Creates a thread group for the given client agent
|
Modifier and Type | Method and Description |
---|---|
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
|
activeCount, activeGroupCount, allowThreadSuspension, checkAccess, destroy, enumerate, enumerate, enumerate, enumerate, getMaxPriority, getName, getParent, interrupt, isDaemon, isDestroyed, list, parentOf, resume, setDaemon, setMaxPriority, stop, suspend, toString, uncaughtException
public AjaxSwingThreadGroup(ClientAgent agent)
agent
- ClientAgentpublic 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()
Copyright © 2000-2012 CreamTec LLC. All Rights Reserved.