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
Returns the time between executions.
Returns the unique identifier for this scheduled action.
void
Executes the scheduled action's logic.
-
Method Details
-
id
Returns the unique identifier for this scheduled action.
- Returns:
- the action's unique id
-
duration
Returns the time between executions.
- Returns:
- the interval duration
-
run
void run()
Executes the scheduled action's logic.