BatchConfig class
Constructors
-
BatchConfig({int maxBatchSize = 50, Duration maxBatchInterval = const Duration(minutes: 5), int maxRetries = 3, Duration retryDelay = const Duration(seconds: 2), int maxQueueSize = 1000})
-
const
Properties
-
hashCode
→ int
-
The hash code for this object.
no setterinherited
-
maxBatchInterval
→ Duration
-
Maximum time to wait before sending a batch (even if not full)
final
-
maxBatchSize
→ int
-
Maximum number of events in a batch before sending
final
-
maxQueueSize
→ int
-
Maximum size of the local queue (prevents unbounded growth)
final
-
maxRetries
→ int
-
Maximum number of retries for failed transactions
final
-
retryDelay
→ Duration
-
Initial retry delay (doubles with each retry)
final
-
runtimeType
→ Type
-
A representation of the runtime type of the object.
no setterinherited