BackgroundProcessor class
Service for processing pending events in background
Constructors
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
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Properties
- isActive → bool
-
Checks if the processor is active
no setter
- isProcessing → bool
-
Checks if it's currently processing
no setter
- processingInterval → int
-
Gets the current processing interval
no setter
Static Methods
-
getProcessorStats(
) → Map< String, dynamic> - Gets processor statistics
-
processEventsNow(
) → Future< void> - Processes pending events manually
-
setProcessingInterval(
int seconds) → void - Configures the processing interval
-
startBackgroundProcessing(
{int intervalSeconds = 30}) → void - Starts automatic processing of pending events
-
stopBackgroundProcessing(
) → void - Stops automatic processing