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 RestateLambdaEndpointBuilderbind(dev.restate.sdk.common.BindableService<?> service)Add a Restate bindable service to the endpoint.RestateLambdaEndpointBuilderbind(java.lang.Object service)Add a Restate service to the endpoint, specifying theexecutorwhere to run the entity code.RestateLambdaEndpointbuild()Build theRestateLambdaEndpointserving the Restate service endpoint.RestateLambdaEndpointBuilderwithOpenTelemetry(io.opentelemetry.api.OpenTelemetry openTelemetry)Add aOpenTelemetryimplementation for tracing and metrics.
-
-
-
Method Detail
-
bind
public RestateLambdaEndpointBuilder bind(java.lang.Object service)
Add a Restate service to the endpoint, specifying theexecutorwhere to run the entity code.
-
bind
public RestateLambdaEndpointBuilder bind(dev.restate.sdk.common.BindableService<?> service)
Add a Restate bindable service to the endpoint.
-
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.
-
-