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

      • bind

        public RestateLambdaEndpointBuilder bind​(java.lang.Object service)
        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 using bind(ServiceDefinition).

      • bind

        public <O> RestateLambdaEndpointBuilder bind​(dev.restate.sdk.common.syscalls.ServiceDefinition<O> serviceDefinition,
                                                     O options)
        Add a Restate service to the endpoint, setting the options.
      • withOpenTelemetry

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

        public RestateLambdaEndpointBuilder withRequestIdentityVerifier​(dev.restate.sdk.auth.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.