Package org.redisson.api
Class ExecutorOptions
- java.lang.Object
-
- org.redisson.api.ExecutorOptions
-
public final class ExecutorOptions extends Object
Configuration for ExecutorService.- Author:
- Nikita Koksharov
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ExecutorOptionsdefaults()longgetTaskRetryInterval()ExecutorOptionstaskRetryInterval(long timeout, TimeUnit unit)Defines task retry interval at the end of which task is executed again.
-
-
-
Method Detail
-
defaults
public static ExecutorOptions defaults()
-
getTaskRetryInterval
public long getTaskRetryInterval()
-
taskRetryInterval
public ExecutorOptions taskRetryInterval(long timeout, TimeUnit unit)
Defines task retry interval at the end of which task is executed again. ExecutorService worker re-schedule task execution retry every 5 seconds.Set
0to disable.Default is
5 minutes- Parameters:
timeout- valueunit- value- Returns:
- self instance
-
-