Interface BackgroundScheduler

  • All Known Implementing Classes:
    DefaultExecutive, WebThreadAffinityExecutive

    public interface BackgroundScheduler

    Optional interface for Executive to implement to indicate it supports background scheduling of Runnable instances.

    Some Executive implementations can only have ProcessState scoped Thread instances that disallow long running background Thread. However, long running background Thread allows more efficiency in running scheduled Runnable instances.

    Author:
    Daniel Sagenschneider
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      void schedule​(long delay, java.lang.Runnable runnable)
      Schedules the Runnable to be executed after the delay.
    • Method Detail

      • schedule

        void schedule​(long delay,
                      java.lang.Runnable runnable)
        Schedules the Runnable to be executed after the delay.
        Parameters:
        delay - Delay in milliseconds.
        runnable - Runnable.