Interface TaskScheduler
public interface TaskScheduler
Interface representing the task scheduling mechanism for executing recurring telemetry submissions.
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interfaceInterface representing a scheduled task. -
Method Summary
Modifier and TypeMethodDescriptionstatic TaskSchedulerCreates a default single-threaded daemon executor-based scheduler.Schedules the task for periodic execution.voidshutdown()Shuts down the scheduler, terminating any active scheduled task.
-
Method Details
-
defaultScheduler
Creates a default single-threaded daemon executor-based scheduler.- Returns:
- the default task scheduler instance
-
schedule
Schedules the task for periodic execution.- Parameters:
task- the telemetry submission taskinitialDelayMs- the initial delay in milliseconds before the first executionperiodMs- the period between consecutive executions in milliseconds- Returns:
- the scheduled task instance
-
shutdown
void shutdown()Shuts down the scheduler, terminating any active scheduled task.
-