Interface Scheduler

    • Method Detail

      • schedule

        default Scheduled schedule​(long delay,
                                   TimeUnit timeUnit,
                                   Runnable callback)
        Schedules a runnable after a delay.
        Parameters:
        delay - the delay after which to run the callback
        timeUnit - the time unit
        callback - the callback to run
        Returns:
        the scheduled callback
      • schedule

        Scheduled schedule​(Duration delay,
                           Runnable callback)
        Schedules a runnable after a delay.
        Parameters:
        delay - the delay after which to run the callback
        callback - the callback to run
        Returns:
        the scheduled callback
      • schedule

        default Scheduled schedule​(long initialDelay,
                                   long interval,
                                   TimeUnit timeUnit,
                                   Runnable callback)
        Schedules a runnable at a fixed rate.
        Parameters:
        initialDelay - the initial delay
        interval - the interval at which to run the callback
        timeUnit - the time unit
        callback - the callback to run
        Returns:
        the scheduled callback
      • schedule

        Scheduled schedule​(Duration initialDelay,
                           Duration interval,
                           Runnable callback)
        Schedules a runnable at a fixed rate.
        Parameters:
        initialDelay - the initial delay
        interval - the interval at which to run the callback
        callback - the callback to run
        Returns:
        the scheduled callback