bind

open fun bind(service: Any): RestateRunnerBuilder

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>): RestateRunnerBuilder

Add a Restate service to the endpoint.

To set the options, use bind.


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

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