BatchManager constructor

BatchManager(
  1. FlagshipPoolQueue fsPool,
  2. Function sendBatch,
  3. TrackingManagerConfig configTracking,
  4. IHitCacheImplementation fsCacheHit, {
  5. String label = "",
})

Implementation

BatchManager(
    this.fsPool, this.sendBatch, this.configTracking, this.fsCacheHit,
    {this.label = ""}) {
  // Timer for cron
  cronTimer = PausableTimer(
      Duration(seconds: configTracking.batchIntervals), batchFromQueue);
  cronTimer.start();
  // Set the delegate
  this.fsPool.delegate = this;
}