Package akka.javasdk.eventsourcedentity
Interface CommandContext
- All Superinterfaces:
Context
,MetadataContext
An event sourced command context.
-
Method Summary
Methods inherited from interface akka.javasdk.Context
selfRegion
Methods inherited from interface akka.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
Deprecated.not used anymoreThe id of the command being executed.- Returns:
- The id of the command.
-
entityId
String entityId()The id of the entity that this context is for.- Returns:
- The entity id.
-
isDeleted
boolean isDeleted() -
tracing
Tracing tracing()Access to tracing for custom app specific tracing.
-