public class GrowingThreadPool extends java.util.concurrent.ThreadPoolExecutor implements HealthCheck
java.util.concurrent.ThreadPoolExecutor.AbortPolicy, java.util.concurrent.ThreadPoolExecutor.CallerRunsPolicy, java.util.concurrent.ThreadPoolExecutor.DiscardOldestPolicy, java.util.concurrent.ThreadPoolExecutor.DiscardPolicy| Constructor and Description |
|---|
GrowingThreadPool(java.lang.String name,
int numThreads,
ThreadPoolGrowth[] growth) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
canProcessRequest() |
void |
changeGrowthRate(ThreadPoolGrowth[] newGrowth) |
int |
getNumOfFreeSlots() |
void |
healthCheck() |
void |
setBacklog(int val) |
void |
setMaxPoolSize(int maxSize) |
afterExecute, allowCoreThreadTimeOut, allowsCoreThreadTimeOut, awaitTermination, beforeExecute, execute, finalize, getActiveCount, getCompletedTaskCount, getCorePoolSize, getKeepAliveTime, getLargestPoolSize, getMaximumPoolSize, getPoolSize, getQueue, getRejectedExecutionHandler, getTaskCount, getThreadFactory, isShutdown, isTerminated, isTerminating, prestartAllCoreThreads, prestartCoreThread, purge, remove, setCorePoolSize, setKeepAliveTime, setMaximumPoolSize, setRejectedExecutionHandler, setThreadFactory, shutdown, shutdownNow, terminated, toStringpublic GrowingThreadPool(java.lang.String name,
int numThreads,
ThreadPoolGrowth[] growth)
public void changeGrowthRate(ThreadPoolGrowth[] newGrowth)
public void setMaxPoolSize(int maxSize)
public void setBacklog(int val)
public int getNumOfFreeSlots()
public boolean canProcessRequest()
public void healthCheck()
healthCheck in interface HealthCheck