Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Go to Latest
class TrackingManagerAbstract
implements ITrackingManager
Abstract
import { TrackingManagerAbstract } from "https://deno.land/x/flagship_io_js_sdk@3.3.2/api/TrackingManagerAbstract.ts";

Constructors

new
TrackingManagerAbstract(
httpClient: IHttpClient,
config: IFlagshipConfig,
flagshipInstanceId?: string,
)

Properties

private
_activatePoolQueue: Map<string, Activate>
private
_config: IFlagshipConfig
private
optional
_flagshipInstanceId: string
private
_hitsPoolQueue: Map<string, HitAbstract>
private
_httpClient: IHttpClient
private
_troubleshootingQueue: Map<string, Troubleshooting>
protected
_analyticHitQueue: Map<string, UsageHit>
protected
_intervalID: any
protected
_isPooling: boolean
protected
strategy: BatchingCachingStrategyAbstract
readonly
config: IFlagshipConfig
readonly
flagshipInstanceId: string | undefined
readonly
httpClient: IHttpClient
troubleshootingData: TroubleshootingData | undefined

Methods

protected
batchingLoop(): Promise<void>
protected
checkLookupHitData(item: HitCacheDTO): boolean
protected
initStrategy(): BatchingCachingStrategyAbstract
abstract
activateFlag(hit: Activate): Promise<void>
abstract
addHit(hit: HitAbstract): Promise<void>
addTroubleshootingHit(hit: Troubleshooting): Promise<void>
lookupHits(): Promise<void>
abstract
sendBatch(): Promise<void>
sendTroubleshootingHit(hit: Troubleshooting): Promise<void>
sendUsageHit(hit: UsageHit): Promise<void>