Interface Scheduler

    • Field Summary

      Fields 
      Modifier and Type Field Description
      static Scheduler DEFAULT
      The default scheduler used by Failsafe if no other scheduler or ScheduledExecutorService is configured for an execution.
    • Method Summary

      All Methods Static Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      static Scheduler of​(java.util.concurrent.ExecutorService executorService)
      Returns a Scheduler adapted from the executorService.
      static Scheduler of​(java.util.concurrent.ScheduledExecutorService scheduledExecutorService)
      Returns a Scheduler adapted from the scheduledExecutorService.
      java.util.concurrent.ScheduledFuture<?> schedule​(java.util.concurrent.Callable<?> callable, long delay, java.util.concurrent.TimeUnit unit)
      Schedules the callable to be called after the delay for the unit.
    • Field Detail

      • DEFAULT

        static final Scheduler DEFAULT
        The default scheduler used by Failsafe if no other scheduler or ScheduledExecutorService is configured for an execution.
    • Method Detail

      • schedule

        java.util.concurrent.ScheduledFuture<?> schedule​(java.util.concurrent.Callable<?> callable,
                                                         long delay,
                                                         java.util.concurrent.TimeUnit unit)
        Schedules the callable to be called after the delay for the unit.
      • of

        static Scheduler of​(java.util.concurrent.ScheduledExecutorService scheduledExecutorService)
        Returns a Scheduler adapted from the scheduledExecutorService.
      • of

        static Scheduler of​(java.util.concurrent.ExecutorService executorService)
        Returns a Scheduler adapted from the executorService.