addNewTrackElement method
Implementation
void addNewTrackElement(Hit newHit) {
// Set id for the hit
newHit.id = newHit.visitorId + "_" + FlagshipTools.generateUuidv4();
// Add hit to queue
fsQueue.add(newHit);
// check the limitation
if (fsQueue.length == sizeLimitation) {
Flagship.logger(Level.DEBUG,
"The size max for the pool is reached, no need to wait for interval time to send batch.");
this.delegate?.onPoolSizeMaxReached();
}
}