RestateHttpServer
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) {
Endpoint endpoint = Endpoint.builder()
.bind(new Counter())
.build();
RestateHttpServer.listen(endpoint);
}
Content copied to clipboard
Functions
Link copied to clipboard
Create a Vert.
open fun fromEndpoint(vertx: Vertx, endpointBuilder: Endpoint.Builder, options: HttpServerOptions): HttpServer
Like fromEndpoint
Link copied to clipboard
open fun fromHandler(vertx: Vertx, handler: HttpEndpointRequestHandler, options: HttpServerOptions): HttpServer
Create a Vert.