Class RestateLambdaEndpointBuilder


  • public final class RestateLambdaEndpointBuilder
    extends java.lang.Object
    Endpoint builder for a Restate AWS Lambda Endpoint, to serve Restate service.
    • Constructor Detail

      • RestateLambdaEndpointBuilder

        public RestateLambdaEndpointBuilder()
    • Method Detail

      • withService

        public RestateLambdaEndpointBuilder withService​(dev.restate.sdk.common.Component component,
                                                        io.grpc.ServerInterceptor... interceptors)
        Add a Component to the endpoint.

        The service code will be executed on the same thread where the lambda is invoked.

      • with

        public RestateLambdaEndpointBuilder with​(java.lang.Object service)
        Add a Restate entity to the endpoint, specifying the executor where to run the entity code.
      • withOpenTelemetry

        public RestateLambdaEndpointBuilder withOpenTelemetry​(io.opentelemetry.api.OpenTelemetry openTelemetry)
        Add a OpenTelemetry implementation for tracing and metrics.
        See Also:
        OpenTelemetry