Interface SequentialExecutorPlus

All Superinterfaces:
Executor, ExecutorPlus, ExecutorService, ResizableThreadPool
All Known Subinterfaces:
LocalAwareSequentialExecutorPlus
All Known Implementing Classes:
LocalAwareSingleThreadExecutorPlus, SingleThreadExecutorPlus

public interface SequentialExecutorPlus extends ExecutorPlus
An 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)
  • Method Details

    • atLeastOnceTrigger

      Return an object for orchestrating the execution of this task at least once (in its entirety) after the trigger is invoked, i.e. saturating the number of pending tasks at 1 (2 including any possibly executing at the time of invocation)