Package city.norain.slimefun4.utils
Class ControllerPoolExecutor
java.lang.Object
java.util.concurrent.AbstractExecutorService
java.util.concurrent.ThreadPoolExecutor
city.norain.slimefun4.utils.ControllerPoolExecutor
- All Implemented Interfaces:
AutoCloseable
,Executor
,ExecutorService
-
Nested Class Summary
Nested classes/interfaces inherited from class java.util.concurrent.ThreadPoolExecutor
ThreadPoolExecutor.AbortPolicy, ThreadPoolExecutor.CallerRunsPolicy, ThreadPoolExecutor.DiscardOldestPolicy, ThreadPoolExecutor.DiscardPolicy
-
Constructor Summary
ConstructorsConstructorDescriptionControllerPoolExecutor
(int corePoolSize, int maximumPoolSize, long keepAliveTime, TimeUnit unit, BlockingQueue<Runnable> workQueue) ControllerPoolExecutor
(int corePoolSize, int maximumPoolSize, long keepAliveTime, TimeUnit unit, BlockingQueue<Runnable> workQueue, ThreadFactory threadFactory) ControllerPoolExecutor
(int corePoolSize, int maximumPoolSize, BlockingQueue<Runnable> workQueue) ControllerPoolExecutor
(int corePoolSize, int maximumPoolSize, BlockingQueue<Runnable> workQueue, ThreadFactory threadFactory) -
Method Summary
Methods inherited from class java.util.concurrent.ThreadPoolExecutor
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, toString
Methods inherited from class java.util.concurrent.AbstractExecutorService
invokeAll, invokeAll, invokeAny, invokeAny, newTaskFor, newTaskFor, submit, submit, submit
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface java.util.concurrent.ExecutorService
close
-
Constructor Details
-
ControllerPoolExecutor
public ControllerPoolExecutor(int corePoolSize, int maximumPoolSize, @Nonnull BlockingQueue<Runnable> workQueue) -
ControllerPoolExecutor
public ControllerPoolExecutor(int corePoolSize, int maximumPoolSize, @Nonnull BlockingQueue<Runnable> workQueue, @Nonnull ThreadFactory threadFactory) -
ControllerPoolExecutor
public ControllerPoolExecutor(int corePoolSize, int maximumPoolSize, long keepAliveTime, @Nonnull TimeUnit unit, @Nonnull BlockingQueue<Runnable> workQueue) -
ControllerPoolExecutor
public ControllerPoolExecutor(int corePoolSize, int maximumPoolSize, long keepAliveTime, @Nonnull TimeUnit unit, @Nonnull BlockingQueue<Runnable> workQueue, @Nonnull ThreadFactory threadFactory)
-
-
Method Details
-
afterExecute
- Overrides:
afterExecute
in classThreadPoolExecutor
-