public class SplitManagerImpl extends Object implements SplitManager
| Constructor and Description |
|---|
SplitManagerImpl(SplitFetcher splitFetcher,
SplitClientConfig config,
SDKReadinessGates gates) |
| Modifier and Type | Method and Description |
|---|---|
void |
blockUntilReady()
The SDK kicks off background threads to download data necessary
for using the SDK.
|
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 SplitManagerImpl(SplitFetcher splitFetcher, SplitClientConfig config, SDKReadinessGates gates)
public List<SplitView> splits()
SplitManagersplits in interface SplitManagerpublic SplitView split(String featureName)
SplitManagersplit 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 SplitManagerTimeoutExceptionInterruptedExceptionCopyright © 2019. All rights reserved.