public class RangedThreadPool
extends java.util.concurrent.ThreadPoolExecutor
java.util.concurrent.ThreadPoolExecutor.AbortPolicy, java.util.concurrent.ThreadPoolExecutor.CallerRunsPolicy, java.util.concurrent.ThreadPoolExecutor.DiscardOldestPolicy, java.util.concurrent.ThreadPoolExecutor.DiscardPolicy| Modifier and Type | Field and Description |
|---|---|
org.apache.log4j.Logger |
log |
| Constructor and Description |
|---|
RangedThreadPool(int corePoolSize,
int maxPoolSize,
int aliveSeconds,
int queueSize,
java.util.concurrent.ThreadFactory threadFactory) |
RangedThreadPool(int corePoolSize,
int maxPoolSize,
int aliveSeconds,
int queueSize,
java.util.concurrent.ThreadFactory threadFactory,
java.util.function.BiConsumer<java.lang.Thread,java.lang.Runnable> beforeExecuteCallback,
java.util.function.BiConsumer<java.lang.Runnable,java.lang.Throwable> afterExecuteCallback) |
RangedThreadPool(int corePoolSize,
int maxPoolSize,
java.util.concurrent.ThreadFactory threadFactory) |
| Modifier and Type | Method and Description |
|---|---|
void |
execute(java.lang.Runnable command) |
void |
executeForker(java.lang.Runnable command) |
void |
executeWorker(java.lang.Runnable command) |
int |
getNotCompletedTaskCount() |
boolean |
isTerminating() |
void |
setMaximumPoolSize(int newMaxPoolSize) |
void |
setRejectedExecutionHandler(java.util.concurrent.RejectedExecutionHandler handler) |
void |
shutdown() |
java.util.List<java.lang.Runnable> |
shutdownNow() |
allowCoreThreadTimeOut, allowsCoreThreadTimeOut, awaitTermination, getActiveCount, getCompletedTaskCount, getCorePoolSize, getKeepAliveTime, getLargestPoolSize, getMaximumPoolSize, getPoolSize, getQueue, getRejectedExecutionHandler, getTaskCount, getThreadFactory, isShutdown, isTerminated, prestartAllCoreThreads, prestartCoreThread, purge, remove, setCorePoolSize, setKeepAliveTime, setThreadFactory, toStringpublic RangedThreadPool(int corePoolSize,
int maxPoolSize,
java.util.concurrent.ThreadFactory threadFactory)
public RangedThreadPool(int corePoolSize,
int maxPoolSize,
int aliveSeconds,
int queueSize,
java.util.concurrent.ThreadFactory threadFactory)
public RangedThreadPool(int corePoolSize,
int maxPoolSize,
int aliveSeconds,
int queueSize,
java.util.concurrent.ThreadFactory threadFactory,
java.util.function.BiConsumer<java.lang.Thread,java.lang.Runnable> beforeExecuteCallback,
java.util.function.BiConsumer<java.lang.Runnable,java.lang.Throwable> afterExecuteCallback)
public void execute(java.lang.Runnable command)
execute in interface java.util.concurrent.Executorexecute in class java.util.concurrent.ThreadPoolExecutorpublic void executeWorker(java.lang.Runnable command)
public void executeForker(java.lang.Runnable command)
public void setMaximumPoolSize(int newMaxPoolSize)
setMaximumPoolSize in class java.util.concurrent.ThreadPoolExecutorpublic int getNotCompletedTaskCount()
public void shutdown()
shutdown in interface java.util.concurrent.ExecutorServiceshutdown in class java.util.concurrent.ThreadPoolExecutorpublic java.util.List<java.lang.Runnable> shutdownNow()
shutdownNow in interface java.util.concurrent.ExecutorServiceshutdownNow in class java.util.concurrent.ThreadPoolExecutorpublic boolean isTerminating()
isTerminating in class java.util.concurrent.ThreadPoolExecutorpublic void setRejectedExecutionHandler(java.util.concurrent.RejectedExecutionHandler handler)
setRejectedExecutionHandler in class java.util.concurrent.ThreadPoolExecutorCopyright © 2000-2025 OAshi S.à r.l. All Rights Reserved.