EventStorageService class

Constructors

EventStorageService()

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 Methods

clearAllPendingEvents() Future<void>
Clears all pending events (useful for testing or reset)
close() Future<void>
Closes the storage service
getEventsByIntegration(String integrationName) List<PendingEvent>
Gets pending events by specific integration
getEventsForRetry() List<PendingEvent>
Gets events ready for retry (alias for compatibility)
getEventsReadyForRetry() List<PendingEvent>
Gets all pending events that are ready for retry
getPendingEventsByIntegration() Map<String, int>
Gets pending events statistics by integration
getPendingEventsCount() int
Gets the total number of pending events
init() Future<void>
Initializes the storage service
removeExpiredEvents({Duration? maxAge}) Future<void>
Removes expired events that have exceeded maximum lifetime
removeSuccessfulEvent(String eventId) Future<void>
Removes a successful event from the database
savePendingEvent(PendingEvent event) Future<void>
Saves a pending event in the local database
setRetryCallback(void callback(List<PendingEvent>)) → void
Sets the callback for events ready for retry
stopRetryTimer() → void
Stops the retry timer
updateEventAttempt(String eventId) Future<void>
Updates the attempt counter of an event