Package kalix.javasdk.action
Interface ActionContext
- All Superinterfaces:
ActionCreationContext
,Context
,MetadataContext
Context for action calls.
-
Method Summary
Modifier and TypeMethodDescriptionThe origin subject of theCloudEvent
.metadata()
Get the metadata associated with this call.Methods inherited from interface kalix.javasdk.action.ActionCreationContext
getGrpcClient, getOpenTelemetryTracer, getTracer
Methods inherited from interface kalix.javasdk.Context
materializer
-
Method Details
-
metadata
Metadata metadata()Get the metadata associated with this call.Note, this only returns call level associated metadata. For unary calls, this will be the same as the message metadata, but for streamed calls, it will contain metadata associated with the whole stream, so for example if this was a gRPC call, it will contain the HTTP headers for that gRPC call.
- Specified by:
metadata
in interfaceMetadataContext
- Returns:
- The call level metadata.
-
eventSubject
The origin subject of theCloudEvent
. For example, the entity id when the event was emitted from an entity.
-