public interface Agenda extends Session
| Modifier and Type | Method and Description |
|---|---|
Runnable |
getNextOperation()
Get next operation from agenda and remove operation from the queue.
|
boolean |
isEmpty()
Returns whether there currently are operations planned on the agenda.
|
<V> void |
planFutureOperation(CompletableFuture<V> future,
BiConsumer<V,Throwable> completeAction)
Plan an operation for a future execution
|
void |
planOperation(Runnable operation)
Plan operation for execution
|
boolean isEmpty()
Runnable getNextOperation()
FlowableException in the case when agenda is emptyvoid planOperation(Runnable operation)
operation - operation to run<V> void planFutureOperation(CompletableFuture<V> future, BiConsumer<V,Throwable> completeAction)
V - the type of the value the future returnsfuture - the future that will return the valuecompleteAction - the action that should be invoked once the future completesCopyright © 2021 Flowable. All rights reserved.