public class SplitFetcherImp extends Object implements SplitFetcher
| Constructor and Description |
|---|
SplitFetcherImp(SplitChangeFetcher splitChangeFetcher,
SplitParser parser,
SplitCacheConsumer splitCacheConsumer,
SplitCacheProducer splitCacheProducer,
TelemetryRuntimeProducer telemetryRuntimeProducer)
Contains all the traffic types that are currently being used by the splits and also the count
For example if there are three splits, one of traffic type "account" and two of traffic type "user",
this multiset will contain [{"user", 2}, {"account", 1}]
The count is used to maintain how many splits are using a traffic type, so when
an ARCHIVED split is received, we know if we need to remove a traffic type from the multiset.
|
| Modifier and Type | Method and Description |
|---|---|
FetchResult |
forceRefresh(FetchOptions options)
Forces a sync of splits, outside of any scheduled
syncs.
|
void |
run() |
public SplitFetcherImp(SplitChangeFetcher splitChangeFetcher, SplitParser parser, SplitCacheConsumer splitCacheConsumer, SplitCacheProducer splitCacheProducer, TelemetryRuntimeProducer telemetryRuntimeProducer)
public FetchResult forceRefresh(FetchOptions options)
SplitFetcherforceRefresh in interface SplitFetcherCopyright © 2021. All rights reserved.