Package ch.ivyteam.ivy.request.async
Interface IvyAsyncExecutor.ExecutorOptions
- Enclosing interface:
IvyAsyncExecutor
public static interface IvyAsyncExecutor.ExecutorOptions
Options for the custom executor service used by the
IvyAsyncExecutor
provided via IvyAsyncExecutor.executor(ExecutorService, ExecutorOptions).
Sample:
ExecutorOptions options = IvyAsyncExecutor.ExecutorOptions.builder() .shutdownAutomatically(false) .build();
- Since:
- 13.2
- API:
- This is a public API.
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interfaceBuilder forIvyAsyncExecutor.ExecutorOptions. -
Method Summary
Modifier and TypeMethodDescriptionbuilder()Creates a builder forIvyAsyncExecutor.ExecutorOptions.booleanIndicates whether the provided executor service should beExecutorService.shutdown()automatically once the request that created the executor is finished.
-
Method Details
-
shutdownAutomatically
boolean shutdownAutomatically()Indicates whether the provided executor service should beExecutorService.shutdown()automatically once the request that created the executor is finished.- Returns:
- true if the executor service should be shutdown automatically, false otherwise
- API:
- This public API is available in Java.
-
builder
Creates a builder forIvyAsyncExecutor.ExecutorOptions.- Returns:
- A new
IvyAsyncExecutor.ExecutorOptions.Builder - API:
- This public API is available in Java.
-