Class ExecutorOptions


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

      • 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 0 to disable.

        Default is 5 minutes

        Parameters:
        timeout - value
        unit - value
        Returns:
        self instance