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