TaskQueueMgr class
A singleton manager for all TaskQueue instances.
This class provides a central point for registering, unregistering, and monitoring task queues. It can be enabled or disabled for performance profiling.
Constructors
- TaskQueueMgr()
-
factory
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
clear(
) → void - Clears the metrics of all registered queues.
-
createReport(
) → TaskQueueReport - Creates a report with the current metrics of all registered queues.
-
isEnabled(
) → bool - Returns true if the task queue manager is enabled.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
register(
TaskQueue taskQueue) → void -
Registers a
TaskQueuewith the manager. -
setEnabled(
bool enabled) → void - Enables or disables the task queue manager.
-
toString(
) → String -
A string representation of this object.
inherited
-
unregister(
TaskQueue taskQueue) → void -
Unregisters a
TaskQueuefrom the manager.
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
resetInstance(
) → void - Reset the singleton instance (for testing purposes only)