public interface SequentialExecutorPlus extends ExecutorPlus
ExecutorPlus
that guarantees the order of execution matches the order of task submission,
and provides a simple mechanism for the recurring pattern of ensuring a job is executed at least once
after some point in time (i.e. ensures that at most one copy of the task is queued, with up to one
copy running as well)Modifier and Type | Interface and Description |
---|---|
static interface |
SequentialExecutorPlus.AtLeastOnceTrigger |
ExecutorPlus.MaximumPoolSizeListener
Modifier and Type | Method and Description |
---|---|
SequentialExecutorPlus.AtLeastOnceTrigger |
atLeastOnceTrigger(java.lang.Runnable runnable)
Return an object for orchestrating the execution of this task at least once (in its entirety) after
the trigger is invoked, i.e.
|
execute, inExecutor, invokeAll, invokeAll, invokeAny, invokeAny, maybeExecuteImmediately, submit, submit, submit, submit, submit, submit
awaitTermination, isShutdown, isTerminated, shutdown, shutdownNow
getActiveTaskCount, getCompletedTaskCount, getCorePoolSize, getMaximumPoolSize, getMaxTasksQueued, getPendingTaskCount, setCorePoolSize, setMaximumPoolSize
SequentialExecutorPlus.AtLeastOnceTrigger atLeastOnceTrigger(java.lang.Runnable runnable)
Copyright © 2009- The Apache Software Foundation