public final class LocalhostSplitManager extends Object implements SplitManager
| Modifier and Type | Method and Description |
|---|---|
void |
blockUntilReady()
The SDK kicks off background threads to download data necessary
for using the SDK.
|
static LocalhostSplitManager |
of(Map<SplitAndKey,LocalhostSplit> featureToTreatmentMap) |
SplitView |
split(String featureName)
Returns the feature (or Split) registered with the SDK of this name.
|
List<String> |
splitNames()
Returns the names of features (or Splits) registered with the SDK.
|
List<SplitView> |
splits()
Retrieves the features (or Splits) that are currently registered with the
SDK.
|
public static LocalhostSplitManager of(Map<SplitAndKey,LocalhostSplit> featureToTreatmentMap)
public List<SplitView> splits()
SplitManagersplits in interface SplitManagerpublic List<String> splitNames()
SplitManagersplitNames in interface SplitManagerpublic void blockUntilReady()
throws TimeoutException,
InterruptedException
SplitManager
If the download is not successful in the time period set on
SplitClientConfig.Builder.setBlockUntilReadyTimeout(int), a TimeoutException will be thrown.
blockUntilReady in interface SplitManagerTimeoutExceptionInterruptedExceptionpublic SplitView split(String featureName)
SplitManagersplit in interface SplitManagerCopyright © 2019. All rights reserved.