Methods Summary |
---|
public abstract long | getKeepAliveTime()Return the number of milliseconds to keep threads alive waiting
for new commands. A negative value means to wait forever. A zero
value means not to wait at all.
|
public abstract int | getMaximumPoolSize()Return the maximum number of threads to use.
|
public abstract int | getMinimumPoolSize()Return the maximum number of threads to simultaneously execute
|
public abstract long | getPoolSize()Return the current number of active threads in the pool.
|
public abstract boolean | getWaitWhenPoolSizeIsFull()return the policy when the pool is full
|
public abstract boolean | isPooling()
|
public abstract AsynchronousTask | process(ThreadManagerRequest ppmRequest)Create, start and return a new asynchronous task from
ppmRequest class instance defining the task parameters.
|
public abstract void | setKeepAliveTime(long time)Set the number of milliseconds to keep threads alive waiting for
new commands. A negative value means to wait forever. A zero
value means not to wait at all.
|
public abstract void | setMaximumPoolSize(int maximumPoolSize)Set the maximum number of threads to use.
|
public abstract void | setMinimumPoolSize(int minimumPoolSize)Set the minimum number of threads to use.
|
public abstract void | setPooling(boolean isPooling)
|
public abstract void | setWaitWhenPoolSizeIsFull(boolean value)Set the policy for blocked execution to be to wait until a thread
is available.
OR
Set the policy for blocked execution to be to
throw a RuntimeException.
|
public abstract ThreadManagerResponse | waitForResponse(AsynchronousTask input)Return the response from an asynchronous task
The call returns within the timeout defined
in the process method
|
public abstract 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
|