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.Options
Default options will use aExecutors.newCachedThreadPool()
shared among all theHandlerRunner
instances. -
Method Summary
Modifier and TypeMethodDescriptionstatic HandlerRunner.Options
withExecutor
(Executor executor) Copy this options setting the givenexecutor
.
-
Field Details
-
DEFAULT
Default options will use aExecutors.newCachedThreadPool()
shared among all theHandlerRunner
instances.
-
-
Method Details
-
withExecutor
Copy this options setting the givenexecutor
.
-