Package org.redisson.api.options
Interface ExecutorOptions
- All Superinterfaces:
CodecOptions<ExecutorOptions,
,Codec> InvocationOptions<ExecutorOptions>
- All Known Implementing Classes:
ExecutorParams
RExecutorService
instance options- Author:
- Nikita Koksharov
-
Method Summary
Modifier and TypeMethodDescriptionidGenerator
(IdGenerator idGenerator) Defines identifier generatorstatic ExecutorOptions
Creates options with the name of object instancetaskRetryInterval
(Duration interval) Defines task retry interval at the end of which task is executed again by ExecutorService worker.Methods inherited from interface org.redisson.api.options.CodecOptions
codec
Methods inherited from interface org.redisson.api.options.InvocationOptions
retryAttempts, retryInterval, timeout
-
Method Details
-
name
Creates options with the name of object instance- Parameters:
name
- of object instance- Returns:
- options instance
-
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:
interval
- value- Returns:
- options instance
-
idGenerator
Defines identifier generator- Parameters:
idGenerator
- identifier generator- Returns:
- options instance
-