- All Known Subinterfaces:
- PersistentEntity.PersistNone<B>
- All Known Implementing Classes:
- PersistentEntity.PersistAll, PersistentEntity.PersistOne
- Enclosing class:
- PersistentEntity<Command,Event,State>
public static interface PersistentEntity.Persist<B extends Event>
A command handler returns a Persist 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 Persist directive.