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

    Modifier and Type
    Method
    Description
    void
    schedule(long delay, Runnable runnable)
    Schedules the Runnable to be executed after the delay.
  • Method Details

    • schedule

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