public SelfUpdatingEventLog(IEventSdkApiClient apiClient, int firstPushWindow, int interval, ISimpleCache <WrappedEvent> eventsCache, int maximumNumberOfKeysToCache = -1) { this.wrappedEventsCache = (eventsCache as ISimpleProducerCache <WrappedEvent>) ?? new InMemorySimpleCache <WrappedEvent>(new BlockingQueue <WrappedEvent>(maximumNumberOfKeysToCache)); this.apiClient = apiClient; this.interval = interval; this.firstPushWindow = firstPushWindow; }
public ImpressionsLog(ITreatmentSdkApiClient apiClient, int interval, ISimpleCache <KeyImpression> impressionsCache, int maximumNumberOfKeysToCache = -1) { _apiClient = apiClient; _impressionsCache = (impressionsCache as ISimpleProducerCache <KeyImpression>) ?? new InMemorySimpleCache <KeyImpression>(new BlockingQueue <KeyImpression>(maximumNumberOfKeysToCache)); _interval = interval; _cancellationTokenSource = new CancellationTokenSource(); }
public EventsLog(IEventSdkApiClient apiClient, int firstPushWindow, int interval, ISimpleCache <WrappedEvent> eventsCache, int maximumNumberOfKeysToCache = -1) { _cancellationTokenSource = new CancellationTokenSource(); _wrappedEventsCache = (eventsCache as ISimpleProducerCache <WrappedEvent>) ?? new InMemorySimpleCache <WrappedEvent>(new BlockingQueue <WrappedEvent>(maximumNumberOfKeysToCache)); _apiClient = apiClient; _interval = interval; _firstPushWindow = firstPushWindow; _wrapperAdapter = new WrapperAdapter(); }
public SelfUpdatingTreatmentLog(ITreatmentSdkApiClient apiClient, int interval, ISimpleCache <KeyImpression> impressionsCache, int maximumNumberOfKeysToCache = -1) { this.impressionsCache = (impressionsCache as ISimpleProducerCache <KeyImpression>) ?? new InMemorySimpleCache <KeyImpression>(new BlockingQueue <KeyImpression>(maximumNumberOfKeysToCache)); this.apiClient = apiClient; this.interval = interval; }