public class CBLExecutor extends ThreadPoolExecutor
ThreadPoolExecutor.AbortPolicy, ThreadPoolExecutor.CallerRunsPolicy, ThreadPoolExecutor.DiscardOldestPolicy, ThreadPoolExecutor.DiscardPolicy
Constructor and Description |
---|
CBLExecutor(String name) |
CBLExecutor(String name,
int min,
int max,
BlockingQueue<Runnable> workQueue) |
Modifier and Type | Method and Description |
---|---|
void |
dumpState() |
void |
execute(Runnable task) |
String |
toString() |
allowCoreThreadTimeOut, allowsCoreThreadTimeOut, awaitTermination, 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
public CBLExecutor(@NonNull String name)
public CBLExecutor(@NonNull String name, int min, int max, @NonNull BlockingQueue<Runnable> workQueue)
public void execute(@NonNull Runnable task)
execute
in interface Executor
execute
in class ThreadPoolExecutor
@NonNull public String toString()
toString
in class ThreadPoolExecutor
public void dumpState()