Interface ExecutorOptions

All Superinterfaces:
CodecOptions<ExecutorOptions,Codec>, InvocationOptions<ExecutorOptions>
All Known Implementing Classes:
ExecutorParams

public interface ExecutorOptions extends CodecOptions<ExecutorOptions,Codec>
RExecutorService instance options
Author:
Nikita Koksharov
  • Method Details

    • name

      static ExecutorOptions name(String name)
      Creates options with the name of object instance
      Parameters:
      name - of object instance
      Returns:
      options instance
    • taskRetryInterval

      ExecutorOptions taskRetryInterval(Duration interval)
      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

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