public interface ThreadPool
| Modifier and Type | Method and Description |
|---|---|
void |
invokeLater(Runnable task)
Dispatch a new task onto this pool
to be invoked asynchronously later.
|
void |
resize(int newSize)
Resize the thread pool.
|
void |
stop()
Stops the pool.
|
void invokeLater(Runnable task)
task - the task to invokevoid stop()
void resize(int newSize)
throws ThreadPoolException
newSize - new number of threads in the thread poolThreadPoolException - if any error occurs during starting threadsCopyright © 2005–2020. All rights reserved.