Class SplitFetcherImp

  • All Implemented Interfaces:
    SplitFetcher, Runnable

    public class SplitFetcherImp
    extends Object
    implements SplitFetcher
    An ExperimentFetcher that refreshes experiment definitions periodically.
    Author:
    adil
    • Constructor Detail

      • SplitFetcherImp

        public SplitFetcherImp​(SplitChangeFetcher splitChangeFetcher,
                               SplitParser parser,
                               SplitCacheProducer splitCacheProducer,
                               TelemetryRuntimeProducer telemetryRuntimeProducer,
                               FlagSetsFilter flagSetsFilter,
                               RuleBasedSegmentParser parserRBS,
                               RuleBasedSegmentCacheProducer ruleBasedSegmentCacheProducer)
        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.