Package org.redisson.api
Class ExecutorOptions
java.lang.Object
org.redisson.api.ExecutorOptions
Configuration for ExecutorService.
- Author:
- Nikita Koksharov
-
Method Summary
Modifier and TypeMethodDescriptionstatic ExecutorOptions
defaults()
long
idGenerator
(IdGenerator idGenerator) Defines identifier generatortaskRetryInterval
(long timeout, TimeUnit unit) Defines task retry interval at the end of which task is executed again by ExecutorService worker.
-
Method Details
-
defaults
-
getTaskRetryInterval
public long getTaskRetryInterval() -
taskRetryInterval
Defines task retry interval at the end of which task is executed again by ExecutorService worker.Counted from the task start moment. Applied only if the task was in progress but for some reason wasn't marked as completed (successful or unsuccessful).
Set
0
to disable.Default is
5 minutes
- Parameters:
timeout
- valueunit
- value- Returns:
- self instance
-
getIdGenerator
-
idGenerator
Defines identifier generator- Parameters:
idGenerator
- identifier generator- Returns:
- self instance
-