Package dev.restate.sdk
Class HandlerRunner.Options
java.lang.Object
dev.restate.sdk.HandlerRunner.Options
- All Implemented Interfaces:
HandlerRunner.Options
- Enclosing class:
HandlerRunner<REQ,RES>
HandlerRunner options. You can override the default options to configure the executor
where to run the handlers.
You can run on virtual threads by using the executor
Executors.newVirtualThreadPerTaskExecutor().
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final HandlerRunner.OptionsDefault options will use aExecutors.newCachedThreadPool()shared among all theHandlerRunnerinstances. -
Method Summary
Modifier and TypeMethodDescriptionstatic HandlerRunner.OptionswithExecutor(Executor executor) Copy this options setting the givenexecutor.
-
Field Details
-
DEFAULT
Default options will use aExecutors.newCachedThreadPool()shared among all theHandlerRunnerinstances.
-
-
Method Details
-
withExecutor
Copy this options setting the givenexecutor.
-