Package io.split.engine.experiments
Interface SplitFetcher
- All Known Implementing Classes:
RefreshableSplitFetcher
public interface SplitFetcher
Created by adilaijaz on 5/8/15.
-
Method Summary
Modifier and Type Method Description ParsedSplitfetch(String splitName)List<ParsedSplit>fetchAll()Set<String>fetchKnownTrafficTypes()Fetches all the traffic types that are being used by the splits that are currently stored.voidforceRefresh()Forces a sync of splits, outside of any scheduled syncs.
-
Method Details
-
fetch
-
fetchAll
List<ParsedSplit> fetchAll() -
fetchKnownTrafficTypes
Fetches all the traffic types that are being used by the splits that are currently stored. For example, if the fetcher currently contains three splits, one of traffic type "account" and two of traffic type "user", this method will return ["account", "user"]- Returns:
- a set of all the traffic types used by the parsed splits
-
forceRefresh
void forceRefresh()Forces a sync of splits, outside of any scheduled syncs. This method MUST NOT throw any exceptions.
-