EventSendingScheduler class
Constructors
- EventSendingScheduler.new({required EventStorageHandler storageHandler, required String apiKey, required String baseUrl, required int flushInterval, required int flushThreshold, Client? httpClient})
Properties
- apiKey → String
-
final
- baseUrl → String
-
final
- flushInterval → int
-
final
- flushThreshold → int
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- httpClient → Client
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- storageHandler → EventStorageHandler
-
final
- timer → Timer?
-
no setter
Methods
-
addEvent(
Event event) → Future< void> - Add an event and flush immediately if threshold reached
-
flushStoredEvents(
) → Future< void> - Internal flush: get events from storage, send, if failed re-save
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
resume(
) → void - Resume periodic flushing if stopped
-
start(
) → void - Start periodic flushing at given interval
-
stop(
) → void - Stop periodic flushing
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited