Interface ScheduledAction


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

Implementations define a unique identifier, a duration (interval or delay), and the logic to be executed.

Since:
1.0.0
  • Method Summary

    Modifier and Type
    Method
    Description
    Returns the time between executions.
    id()
    Returns the unique identifier for this scheduled action.
    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
    • duration

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

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