RestateHttpEndpointBuilder
Endpoint builder for a Restate HTTP Endpoint using Vert.x, to serve Restate services.
This endpoint supports the Restate HTTP/2 Streaming component Protocol.
Example usage:
public static void main(String[] args) {
RestateHttpEndpointBuilder.builder()
.bind(new Counter())
.buildAndListen();
}
Content copied to clipboard
Functions
Link copied to clipboard
Add a Restate service to the endpoint.
Add a Restate service to the endpoint, setting the options.
Link copied to clipboard
Build and listen on the port specified by the environment variable
PORT
, or alternatively on the default 9080
port.Build and listen on the specified port.
Link copied to clipboard
Create a new builder.
Link copied to clipboard
Link copied to clipboard
Set the OpenTelemetry implementation for tracing and metrics.
Link copied to clipboard
Add custom HttpServerOptions to the server used by the endpoint.
Link copied to clipboard
open fun withRequestIdentityVerifier(requestIdentityVerifier: RequestIdentityVerifier): RestateHttpEndpointBuilder
Set the request identity verifier for this endpoint.