Package dev.restate.sdk.lambda
Class RestateLambdaEndpointBuilder
java.lang.Object
dev.restate.sdk.lambda.RestateLambdaEndpointBuilder
Endpoint builder for a Restate AWS Lambda Endpoint, to serve Restate service.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbind
(ServiceDefinition<?> service) Add a Restate service to the endpoint.bind
(ServiceDefinition<O> serviceDefinition, O options) Add a Restate service to the endpoint, setting the options.Add a Restate service to the endpoint.build()
Build theRestateLambdaEndpoint
serving the Restate service endpoint.withOpenTelemetry
(io.opentelemetry.api.OpenTelemetry openTelemetry) Add aOpenTelemetry
implementation for tracing and metrics.withRequestIdentityVerifier
(RequestIdentityVerifier requestIdentityVerifier) Set the request identity verifier for this endpoint.
-
Constructor Details
-
RestateLambdaEndpointBuilder
public RestateLambdaEndpointBuilder()
-
-
Method Details
-
bind
Add a Restate service to the endpoint. This will automatically discover the generated factory based on the class name.You can also manually instantiate the
ServiceDefinition
usingbind(ServiceDefinition)
. -
bind
Add a Restate service to the endpoint.To set the options, use
bind(ServiceDefinition, Object)
. -
bind
Add a Restate service to the endpoint, setting the options. -
withOpenTelemetry
public RestateLambdaEndpointBuilder withOpenTelemetry(io.opentelemetry.api.OpenTelemetry openTelemetry) Add aOpenTelemetry
implementation for tracing and metrics.- See Also:
-
withRequestIdentityVerifier
public RestateLambdaEndpointBuilder withRequestIdentityVerifier(RequestIdentityVerifier requestIdentityVerifier) Set the request identity verifier for this endpoint.For the Restate implementation to use with Restate Cloud, check the module
sdk-request-identity
. -
enablePreviewContext
-
build
Build theRestateLambdaEndpoint
serving the Restate service endpoint.
-