Interface CommandContext
- All Superinterfaces:
Context, EntityContext, EventSourcedEntityContext, MetadataContext
An event sourced command context.
-
Method Summary
Modifier and TypeMethodDescriptionlongThe id of the command being executed.The name of the command being executed.longThe current sequence number of events in this entity.Methods inherited from interface Context
materializerMethods inherited from interface EntityContext
entityIdMethods inherited from interface MetadataContext
metadata
-
Method Details
-
sequenceNumber
long sequenceNumber()The current sequence number of events in this entity.- Returns:
- The current sequence number.
-
commandName
-
commandId
long commandId()The id of the command being executed.- Returns:
- The id of the command.
-