|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
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 |
public void setWaitWhenPoolSizeIsFull(boolean value)
public boolean getWaitWhenPoolSizeIsFull()
public void setMaximumPoolSize(int maximumPoolSize)
public int getMaximumPoolSize()
public void setMinimumPoolSize(int minimumPoolSize)
public int getMinimumPoolSize()
public void setKeepAliveTime(long time)
public long getKeepAliveTime()
public long getPoolSize()
public ThreadManagerResponse waitForResponse(AsynchronousTask input)
public ThreadManagerResponse[] waitForResponses(AsynchronousTask[] input)
public AsynchronousTask process(ThreadManagerRequest ppmRequest)
ppmRequest class instance defining the task parameters.
public boolean isPooling()
public void setPooling(boolean isPooling)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |