ReporterQueue class
Queue for storing failed reports to retry later
Constructors
- ReporterQueue({required DiscordReporter discordReporter, int maxRetries = 3, Duration retryDelay = const Duration(seconds: 5)})
Properties
- discordReporter → DiscordReporter
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- maxRetries → int
-
final
- queueSize → int
-
Get queue size
no setter
- retryDelay → Duration
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
clear(
) → void - Clear queue
-
enqueue(
ApiErrorReport report) → void - Add report to queue for retry
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
processQueue(
) → Future< void> - Process all queued reports
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited