Package org.apache.cassandra.concurrent
Interface SequentialExecutorPlus.AtLeastOnceTrigger
- All Known Implementing Classes:
SingleThreadExecutorPlus.AtLeastOnce
- Enclosing interface:
- SequentialExecutorPlus
public static interface SequentialExecutorPlus.AtLeastOnceTrigger
-
Method Summary
Modifier and TypeMethodDescriptionvoidRun the provided task after all queued and executing jobs have completedvoidsync()Wait until all queued and executing jobs have completedbooleantrigger()Ensure the job is run at least once in its entirety after this method is invoked (including any already queued)
-
Method Details
-
trigger
boolean trigger()Ensure the job is run at least once in its entirety after this method is invoked (including any already queued) -
runAfter
Run the provided task after all queued and executing jobs have completed -
sync
void sync()Wait until all queued and executing jobs have completed
-