public interface ResizableThreadPool
Modifier and Type | Method and Description |
---|---|
int |
getActiveTaskCount()
Returns the approximate number of threads that are actively
executing tasks.
|
long |
getCompletedTaskCount()
Returns the approximate total number of tasks that have
completed execution.
|
int |
getCorePoolSize()
Returns core pool size of thread pool, the minimum
number of workers (where that makes sense for a thread pool,
SEPExecutor does not have a minimum size).
|
int |
getMaximumPoolSize()
Returns maximum pool size of thread pool.
|
default int |
getMaxTasksQueued() |
int |
getPendingTaskCount()
Returns the approximate total of tasks waiting to be executed.
|
void |
setCorePoolSize(int newCorePoolSize)
Allows user to resize minimum size of the thread pool.
|
void |
setMaximumPoolSize(int newMaximumPoolSize)
Allows user to resize maximum size of the thread pool.
|
int getCorePoolSize()
void setCorePoolSize(int newCorePoolSize)
int getMaximumPoolSize()
void setMaximumPoolSize(int newMaximumPoolSize)
int getActiveTaskCount()
long getCompletedTaskCount()
int getPendingTaskCount()
default int getMaxTasksQueued()
Copyright © 2009- The Apache Software Foundation