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.
-
Method Details
-
defaults
-
getTaskRetryInterval
public long getTaskRetryInterval() -
taskRetryInterval
Defines task retry interval at the end of which task is executed again. ExecutorService worker re-schedule task execution retry every 5 seconds.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
-