| Modifier and Type | Field and Description |
|---|---|
protected CommandContext |
commandContext |
protected LinkedList<Runnable> |
operations |
| Constructor and Description |
|---|
AbstractAgenda(CommandContext commandContext) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
assertOperationsNotEmpty() |
void |
close() |
void |
flush() |
CommandContext |
getCommandContext() |
Runnable |
getNextOperation()
Get next operation from agenda and remove operation from the queue.
|
LinkedList<Runnable> |
getOperations() |
boolean |
isEmpty()
Returns whether there currently are operations planned on the agenda.
|
Runnable |
peekOperation()
Get next operation from agenda and keep operation on the top of the agenda
|
void |
planOperation(Runnable operation)
Generic method to plan a
Runnable. |
void |
setCommandContext(CommandContext commandContext) |
protected CommandContext commandContext
protected LinkedList<Runnable> operations
public AbstractAgenda(CommandContext commandContext)
public boolean isEmpty()
Agendapublic Runnable getNextOperation()
AgendagetNextOperation in interface Agendapublic Runnable peekOperation()
AgendapeekOperation in interface Agendaprotected void assertOperationsNotEmpty()
public void planOperation(Runnable operation)
Runnable.planOperation in interface Agendaoperation - operation to runpublic LinkedList<Runnable> getOperations()
public CommandContext getCommandContext()
public void setCommandContext(CommandContext commandContext)
Copyright © 2019 Flowable. All rights reserved.