public class SingleThreadExecutorPlus extends ThreadPoolExecutorPlus implements SequentialExecutorPlus
Modifier and Type | Class and Description |
---|---|
static class |
SingleThreadExecutorPlus.AtLeastOnce |
java.util.concurrent.ThreadPoolExecutor.AbortPolicy, java.util.concurrent.ThreadPoolExecutor.CallerRunsPolicy, java.util.concurrent.ThreadPoolExecutor.DiscardOldestPolicy, java.util.concurrent.ThreadPoolExecutor.DiscardPolicy
SequentialExecutorPlus.AtLeastOnceTrigger
ExecutorPlus.MaximumPoolSizeListener
blockingExecutionHandler
Modifier and Type | Method and Description |
---|---|
SingleThreadExecutorPlus.AtLeastOnce |
atLeastOnceTrigger(java.lang.Runnable run)
Return an object for orchestrating the execution of this task at least once (in its entirety) after
the trigger is invoked, i.e.
|
int |
getCorePoolSize()
Returns core pool size of thread pool, the minimum
number of workers (where that makes sense for a thread pool,
SEPExecutor does not have a minimum size).
|
int |
getMaximumPoolSize()
Returns maximum pool size of thread pool.
|
void |
setCorePoolSize(int number)
Allows user to resize minimum size of the thread pool.
|
void |
setMaximumPoolSize(int number)
Allows user to resize maximum size of the thread pool.
|
execute, execute, getMaxTasksQueued, inExecutor, newTaskFor, newTaskFor, submit, submit, submit, submit, submit, submit
getActiveTaskCount, getCoreThreads, getMaximumThreads, getPendingTaskCount, getThreadFactory, onShutdown, onShutdown, setCoreThreads, setMaximumThreads, shutdown, shutdownNow, terminated, toString
afterExecute, allowCoreThreadTimeOut, allowsCoreThreadTimeOut, awaitTermination, beforeExecute, finalize, getActiveCount, getCompletedTaskCount, getKeepAliveTime, getLargestPoolSize, getPoolSize, getQueue, getRejectedExecutionHandler, getTaskCount, isShutdown, isTerminated, isTerminating, prestartAllCoreThreads, prestartCoreThread, purge, remove, setKeepAliveTime, setRejectedExecutionHandler, setThreadFactory
invokeAll, invokeAll, invokeAny, invokeAny
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
execute, inExecutor, invokeAll, invokeAll, invokeAny, invokeAny, maybeExecuteImmediately, submit, submit, submit, submit, submit, submit
awaitTermination, isShutdown, isTerminated, shutdown, shutdownNow
getActiveTaskCount, getCompletedTaskCount, getMaxTasksQueued, getPendingTaskCount
public int getCorePoolSize()
ResizableThreadPool
getCorePoolSize
in interface ResizableThreadPool
getCorePoolSize
in class java.util.concurrent.ThreadPoolExecutor
public void setCorePoolSize(int number)
ResizableThreadPool
setCorePoolSize
in interface ResizableThreadPool
setCorePoolSize
in class java.util.concurrent.ThreadPoolExecutor
public int getMaximumPoolSize()
ResizableThreadPool
getMaximumPoolSize
in interface ResizableThreadPool
getMaximumPoolSize
in class java.util.concurrent.ThreadPoolExecutor
public void setMaximumPoolSize(int number)
ResizableThreadPool
setMaximumPoolSize
in interface ResizableThreadPool
setMaximumPoolSize
in class java.util.concurrent.ThreadPoolExecutor
public SingleThreadExecutorPlus.AtLeastOnce atLeastOnceTrigger(java.lang.Runnable run)
SequentialExecutorPlus
atLeastOnceTrigger
in interface SequentialExecutorPlus
Copyright © 2009-2022 The Apache Software Foundation