public interface Effect<Event,State>
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.
| Modifier and Type | Method and Description |
|---|---|
Effect<Event,State> |
andThen(scala.Function1<State,scala.runtime.BoxedUnit> afterCallback)
Execute the given side effect callback after events, if any, are persisted.
|
Effect<Event,State> andThen(scala.Function1<State,scala.runtime.BoxedUnit> afterCallback)
afterCallback - (undocumented)