TrackingManageContinuousStrategy constructor

TrackingManageContinuousStrategy(
  1. Service service,
  2. TrackingManagerConfig configTracking,
  3. IHitCacheImplementation fsCacheHit
)

Implementation

TrackingManageContinuousStrategy(Service service,
    TrackingManagerConfig configTracking, IHitCacheImplementation fsCacheHit)
    : super(service, configTracking, fsCacheHit) {
  // Hits pool
  _fsHitPool = FlagshipPoolQueue(configTracking.poolMaxSize);

  // Activate pool
  _activatePool = FlagshipPoolQueue(configTracking.poolMaxSize);

  // Create batch manager
  hitBatchManager = BatchManager(
      _fsHitPool, sendBatch, configTracking, fsCacheHit,
      label: "batch_of_hits");

  // Create batch manager for activate
  activateBatchManager = BatchManager(
      _activatePool, sendActivateBatch, configTracking, fsCacheHit,
      label: "batch_of_activate");

  this.hitDelegate = hitBatchManager;
  this.activateDelegate = activateBatchManager;
}