Package dev.restate.sdk.common
Class Request
java.lang.Object
dev.restate.sdk.common.Request
The Request object represents the incoming request to an handler.
-
Constructor Summary
ConstructorDescriptionRequest
(InvocationId invocationId, io.opentelemetry.context.Context otelContext, ByteBuffer body, Map<String, String> headers) -
Method Summary
-
Constructor Details
-
Request
public Request(InvocationId invocationId, io.opentelemetry.context.Context otelContext, ByteBuffer body, Map<String, String> headers)
-
-
Method Details
-
invocationId
- Returns:
- this invocation id.
-
otelContext
public io.opentelemetry.context.Context otelContext()- Returns:
- the attached OpenTelemetry
Context
.
-
body
public byte[] body() -
bodyBuffer
-
headers
- Returns:
- the request headers, as received at the ingress.
-
equals
-
hashCode
public int hashCode() -
toString
-