Package kalix.javasdk.replicatedentity
Interface CommandContext
- All Superinterfaces:
Context,EntityContext,MetadataContext,ReplicatedEntityContext
Command context for Replicated Entity.
-
Method Summary
Modifier and TypeMethodDescriptionlongThe id of the command.The name of the command.Methods inherited from interface kalix.javasdk.Context
materializerMethods inherited from interface kalix.javasdk.EntityContext
entityIdMethods 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.
-