Package org.apache.cassandra.concurrent
Interface SequentialExecutorPlus.AtLeastOnceTrigger
-
- All Known Implementing Classes:
SingleThreadExecutorPlus.AtLeastOnce
- Enclosing interface:
- SequentialExecutorPlus
public static interface SequentialExecutorPlus.AtLeastOnceTrigger
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidrunAfter(java.lang.Runnable run)Run 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 Detail
-
trigger
boolean trigger()
Ensure the job is run at least once in its entirety after this method is invoked (including any already queued)
-
runAfter
void runAfter(java.lang.Runnable run)
Run the provided task after all queued and executing jobs have completed
-
sync
void sync()
Wait until all queued and executing jobs have completed
-
-