BatchManager constructor
BatchManager(
- FlagshipPoolQueue fsPool,
- Function sendBatch,
- TrackingManagerConfig configTracking,
- IHitCacheImplementation fsCacheHit, {
- 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;
}