Interface ScheduledAction


public interface ScheduledAction
Represents an action that can be scheduled for execution.
  • Method Summary

    Modifier and Type
    Method
    Description
    id()
    Returns the unique identifier for this scheduled action.
    Returns the time between executions.
    void
    run()
    Executes the scheduled action's logic.
  • Method Details

    • id

      String id()
      Returns the unique identifier for this scheduled action.
      Returns:
      the action's unique id
    • interval

      Duration interval()
      Returns the time between executions.
      Returns:
      the interval duration
    • run

      void run()
      Executes the scheduled action's logic.