SchedulerEngine class

The main scheduler engine that manages scheduled tasks

This class is responsible for:

  • Adding and managing scheduled tasks
  • Starting, stopping, pausing, and resuming tasks
  • Providing statistics about task execution
  • Ensuring thread-safe operations on tasks
Implemented types

Constructors

SchedulerEngine()

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
taskCount int
Get the count of registered tasks
no setter

Methods

activeTasks() List<String>
Get a list of active task names
override
add(ScheduledTask task) → void
Add a new scheduled task
override
clear() → void
Clear all tasks from the scheduler
getStats() Map<String, TaskStats>
Get task statistics
override
getTask(String name) ScheduledTask?
Get a specific task by name
getTaskNames() List<String>
Get all registered task names
hasTask(String name) bool
Check if a task exists
isRunning(String name) bool
Check if a task is currently running
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
pause(String name) → void
Pause a specific task
override
remove(String name) → void
Remove a task from the scheduler
resume(String name) → void
Resume a paused task
override
stop(String name) → void
Stop a specific task by name
override
stopAll() → void
Stop all running tasks
override
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited