Class HandlerRequest
java.lang.Object
dev.restate.sdk.common.HandlerRequest
This class encapsulates the inputs to a handler.
-
Constructor Summary
ConstructorsConstructorDescriptionHandlerRequest(InvocationId invocationId, io.opentelemetry.context.Context otelContext, Slice body, Map<String, String> headers) HandlerRequest(InvocationId invocationId, io.opentelemetry.context.Context otelContext, Slice body, Map<String, String> headers, @Nullable String scope, @Nullable String limitKey, @Nullable String idempotencyKey, String serviceName, String handlerName) -
Method Summary
Modifier and TypeMethodDescriptionbody()byte[]booleanName of the handler being invoked.inthashCode()headers()@Nullable StringThe idempotency key with which this invocation was submitted, if any.@Nullable StringlimitKey()PREVIEW: The limit key with which this invocation was submitted, if any.io.opentelemetry.context.ContextDeprecated, for removal: This API element is subject to removal in a future version.@Nullable Stringscope()PREVIEW: The scope key with which this invocation was submitted, if any.Name of the service being invoked.toString()
-
Constructor Details
-
HandlerRequest
-
HandlerRequest
public HandlerRequest(InvocationId invocationId, io.opentelemetry.context.Context otelContext, Slice body, Map<String, String> headers)
-
-
Method Details
-
invocationId
-
openTelemetryContext
Deprecated, for removal: This API element is subject to removal in a future version.Use the newsdk-interceptor-opentelemetrymodule instead -
body
-
bodyAsByteArray
public byte[] bodyAsByteArray() -
bodyAsBodyBuffer
-
headers
-
scope
PREVIEW: The scope key with which this invocation was submitted, if any.- See Also:
-
limitKey
PREVIEW: The limit key with which this invocation was submitted, if any. -
idempotencyKey
The idempotency key with which this invocation was submitted, if any. -
serviceName
Name of the service being invoked. -
handlerName
Name of the handler being invoked. -
equals
-
hashCode
-
toString
-
sdk-interceptor-opentelemetrymodule instead