Interface Scheduler<T extends Event>


public interface Scheduler<T extends Event>
A scheduler that is able to schedule a task to execute asynchronously. A task is represented as event listener.
Since:
5.0.6
Author:
tomyeh
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    schedule(EventListener<T> task, T event)
    Schedules the task to execute asynchronously.
  • Method Details

    • schedule

      void schedule(EventListener<T> task, T event)
      Schedules the task to execute asynchronously.
      Parameters:
      task - the task to execute
      event - the event to be passed to the task (i.e., the event listener). It could null or any instance as long as the task recognizes it.