Package dev.restate.sdk.lambda
Class RestateLambdaEndpointBuilder
- java.lang.Object
-
- dev.restate.sdk.lambda.RestateLambdaEndpointBuilder
-
public final class RestateLambdaEndpointBuilder extends java.lang.ObjectEndpoint builder for a Restate AWS Lambda Endpoint, to serve Restate service.
-
-
Constructor Summary
Constructors Constructor Description RestateLambdaEndpointBuilder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description RestateLambdaEndpointbuild()Build theRestateLambdaEndpointserving the Restate service endpoint.RestateLambdaEndpointBuilderwithOpenTelemetry(io.opentelemetry.api.OpenTelemetry openTelemetry)Add aOpenTelemetryimplementation for tracing and metrics.RestateLambdaEndpointBuilderwithService(dev.restate.sdk.common.Service service, io.grpc.ServerInterceptor... interceptors)Add aServiceto the endpoint.
-
-
-
Method Detail
-
withService
public RestateLambdaEndpointBuilder withService(dev.restate.sdk.common.Service service, io.grpc.ServerInterceptor... interceptors)
Add aServiceto the endpoint.The service code will be executed on the same thread where the lambda is invoked.
-
withOpenTelemetry
public RestateLambdaEndpointBuilder withOpenTelemetry(io.opentelemetry.api.OpenTelemetry openTelemetry)
Add aOpenTelemetryimplementation for tracing and metrics.- See Also:
OpenTelemetry
-
build
public RestateLambdaEndpoint build()
Build theRestateLambdaEndpointserving the Restate service endpoint.
-
-