Options

class Options(var coroutineContext: CoroutineContext = Dispatchers.Default, var handlerInterceptorFactories: MutableList<HandlerInterceptor.Factory> = SPI_HANDLER_FACTORIES.toMutableList(), var runInterceptorFactories: MutableList<RunInterceptor.Factory> = SPI_RUN_FACTORIES.toMutableList()) : HandlerRunner.Options

dev.restate.sdk.kotlin.HandlerRunner options. You can override the default options to configure the CoroutineContext to run the handler, and to register interceptor factories.

DEFAULT picks up any HandlerInterceptor.Factory and RunInterceptor.Factory registered via java.util.ServiceLoader on the classpath.

Constructors

Link copied to clipboard
constructor(coroutineContext: CoroutineContext = Dispatchers.Default, handlerInterceptorFactories: MutableList<HandlerInterceptor.Factory> = SPI_HANDLER_FACTORIES.toMutableList(), runInterceptorFactories: MutableList<RunInterceptor.Factory> = SPI_RUN_FACTORIES.toMutableList())

Types

Link copied to clipboard
object Companion