|
uPortal 2.4.1 API Documentation |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jasig.portal.utils.threading.AbstractPool
org.jasig.portal.utils.threading.BoundedThreadPool
A thread pool with a maxium number of possible worker threads
Constructor Summary | |
BoundedThreadPool(int minThreads,
int maxThreads,
int threadPriority)
BoundedThreadPool Construcutor |
Method Summary | |
void |
destroyThread(java.lang.Thread thread)
Destroyed a pooled thread |
WorkTracker |
execute(WorkerTask task)
Queues up a task to be executed. |
Methods inherited from class org.jasig.portal.utils.threading.AbstractPool |
busyThreads, destroy, getPooledThread, idleThreads, lockThread, releaseThread, totalThreads |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public BoundedThreadPool(int minThreads, int maxThreads, int threadPriority)
minThreads
- the min number of worker threads that can be in this poolmaxThreads
- the max number of worker threads that can be in this poolthreadPriority
- the priority these worker threads should haveMethod Detail |
public void destroyThread(java.lang.Thread thread)
destroyThread
in interface ThreadPool
destroyThread
in class AbstractPool
thread
- the thread to be destroyedpublic WorkTracker execute(WorkerTask task) throws java.lang.IllegalStateException
execute
in interface ThreadPool
execute
in class AbstractPool
task
- the task to be executed
java.lang.IllegalStateException
- - thrown if the pool has been destroyed
|
uPortal 2.4.1 API Documentation |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |