Class ExecutorOptions

java.lang.Object
org.redisson.api.ExecutorOptions

public final class ExecutorOptions extends Object
Configuration for ExecutorService.
Author:
Nikita Koksharov
  • Method Details

    • 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 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 - value
      unit - value
      Returns:
      self instance
    • getIdGenerator

      public IdGenerator getIdGenerator()
    • idGenerator

      public ExecutorOptions idGenerator(IdGenerator idGenerator)
      Defines identifier generator
      Parameters:
      idGenerator - identifier generator
      Returns:
      self instance