Package kalix.javasdk.replicatedentity
Interface CommandContext
- All Superinterfaces:
Context
,EntityContext
,MetadataContext
,ReplicatedEntityContext
Command context for Replicated Entity.
-
Method Summary
Modifier and TypeMethodDescriptionlong
The id of the command.The name of the command.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
-
commandId
long commandId()The id of the command. This is an internal ID generated by the proxy, and is unique to a given entity stream. It may be used for debugging purposes.- Returns:
- The ID of the command.
-
commandName
String commandName()The name of the command.Corresponds to the name of the rpc call in the protobuf definition.
- Returns:
- The name of the command.
-