public class SuspendableThreadPoolExecutor
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 | Method and Description |
|---|---|
protected void |
beforeExecute(@NonNull java.lang.Thread thread,
@NonNull java.lang.Runnable task) |
void |
setAvailable(boolean available)
Sets the availability of this executor.
|
afterExecute, allowCoreThreadTimeOut, allowsCoreThreadTimeOut, awaitTermination, 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, toStringprotected void beforeExecute(@NonNull java.lang.Thread thread,
@NonNull java.lang.Runnable task)
beforeExecute in class java.util.concurrent.ThreadPoolExecutorpublic void setAvailable(boolean available)
available - true if the executor is available to execute tasks, false
otherwise.Copyright © 2022 - present; JODConverter. All rights reserved.