Interface Agenda
- All Superinterfaces:
Session
- All Known Subinterfaces:
CmmnEngineAgenda, DmnEngineAgenda, FlowableEngineAgenda
- All Known Implementing Classes:
AbstractAgenda, DebugFlowableEngineAgenda, DefaultCmmnEngineAgenda, DefaultDmnEngineAgenda, DefaultFlowableEngineAgenda
-
Method Summary
Modifier and TypeMethodDescriptionGet next operation from agenda and remove operation from the queue.booleanisEmpty()Returns whether there currently are operations planned on the agenda.<V> voidplanFutureOperation(CompletableFuture<V> future, BiConsumer<V, Throwable> completeAction) Plan an operation for a future executionvoidplanOperation(Runnable operation) Plan operation for execution
-
Method Details
-
isEmpty
boolean isEmpty()Returns whether there currently are operations planned on the agenda. -
getNextOperation
Runnable getNextOperation()Get next operation from agenda and remove operation from the queue.- Returns:
- next operation from the queue
throws
FlowableExceptionin the case when agenda is empty
-
planOperation
Plan operation for execution- Parameters:
operation- operation to run
-
planFutureOperation
Plan an operation for a future execution- Type Parameters:
V- the type of the value the future returns- Parameters:
future- the future that will return the valuecompleteAction- the action that should be invoked once the future completes
-