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
Start serving the provided
endpoint
on the port specified by the environment variable PORT
, or alternatively on the default 9080
port.Like listen
Start serving the provided
endpoint
on the specified port.