-
- All Implemented Interfaces:
-
org.enodeframework.commanding.CommandContext,org.enodeframework.commanding.TrackingContext
public interface CommandExecuteContext implements CommandContext, TrackingContext
Represents a context environment for command executor executing command.
-
-
Method Summary
Modifier and Type Method Description abstract CompletableFuture<Boolean>onCommandExecutedAsync(CommandResult commandResult)Notify the given command is executed. abstract StringgetResult()Get result. abstract UnitsetResult(String result)Get result. abstract ApplicationMessagegetApplicationMessage()Set an application message. abstract UnitsetApplicationMessage(ApplicationMessage applicationMessage)Set an application message. abstract List<AggregateRoot>getTrackedAggregateRoots()Get all the tracked aggregates. -
-
Method Detail
-
onCommandExecutedAsync
abstract CompletableFuture<Boolean> onCommandExecutedAsync(CommandResult commandResult)
Notify the given command is executed.
-
getApplicationMessage
abstract ApplicationMessage getApplicationMessage()
Set an application message.
-
setApplicationMessage
abstract Unit setApplicationMessage(ApplicationMessage applicationMessage)
Set an application message.
-
getTrackedAggregateRoots
abstract List<AggregateRoot> getTrackedAggregateRoots()
Get all the tracked aggregates.
-
-
-
-