bind

open fun bind(service: Any): RestateHttpEndpointBuilder

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.


open fun bind(serviceDefinition: ServiceDefinition<out Any>): RestateHttpEndpointBuilder

Add a Restate service to the endpoint.

To set the options, use bind.


open fun <O> bind(serviceDefinition: ServiceDefinition<O>, options: O): RestateHttpEndpointBuilder

Add a Restate service to the endpoint, setting the options.