public abstract class Effect<Event,State>
extends java.lang.Object
Effect directive that defines what event or events,
if any, to persist. Use the thenPersist, thenPersistAll or done methods of the context
that is passed to the command handler function to create the Effect directive.
Additional side effects can be performed in the callback andThen
Instances of Effect are available through factories in the respective Java and Scala DSL packages.
Not intended for user extension.
| Constructor and Description |
|---|
Effect() |
| Modifier and Type | Method and Description |
|---|---|
abstract Effect<Event,State> |
andThen(java.util.function.Consumer<State> afterCallback)
Execute the given side effect callback after events, if any, are persisted.
|
public abstract Effect<Event,State> andThen(java.util.function.Consumer<State> afterCallback)
afterCallback - (undocumented)