|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ThreadManager
Method Summary | |
---|---|
long |
getKeepAliveTime()
Return the number of milliseconds to keep threads alive waiting for new commands. |
int |
getMaximumPoolSize()
Return the maximum number of threads to use. |
int |
getMinimumPoolSize()
Return the maximum number of threads to simultaneously execute |
long |
getPoolSize()
Return the current number of active threads in the pool. |
boolean |
getWaitWhenPoolSizeIsFull()
return the policy when the pool is full |
boolean |
isPooling()
|
AsynchronousTask |
process(ThreadManagerRequest ppmRequest)
Create, start and return a new asynchronous task from |
void |
setKeepAliveTime(long time)
Set the number of milliseconds to keep threads alive waiting for new commands. |
void |
setMaximumPoolSize(int maximumPoolSize)
Set the maximum number of threads to use. |
void |
setMinimumPoolSize(int minimumPoolSize)
Set the minimum number of threads to use. |
void |
setPooling(boolean isPooling)
|
void |
setWaitWhenPoolSizeIsFull(boolean value)
Set the policy for blocked execution to be to wait until a thread is available. |
ThreadManagerResponse |
waitForResponse(AsynchronousTask input)
Return the response from an asynchronous task The call returns within the timeout defined in the process method |
ThreadManagerResponse[] |
waitForResponses(AsynchronousTask[] input)
Return an array of responses from an array of asynchronous task The call returns within the maximum timeout from the array of tasks |
Method Detail |
---|
void setWaitWhenPoolSizeIsFull(boolean value)
boolean getWaitWhenPoolSizeIsFull()
void setMaximumPoolSize(int maximumPoolSize)
int getMaximumPoolSize()
void setMinimumPoolSize(int minimumPoolSize)
int getMinimumPoolSize()
void setKeepAliveTime(long time)
long getKeepAliveTime()
long getPoolSize()
ThreadManagerResponse waitForResponse(AsynchronousTask input)
ThreadManagerResponse[] waitForResponses(AsynchronousTask[] input)
AsynchronousTask process(ThreadManagerRequest ppmRequest)
ppmRequest class instance defining the task parameters.
boolean isPooling()
void setPooling(boolean isPooling)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |