Package io.split.client
Interface SplitManager
-
- All Known Implementing Classes:
LocalhostSplitManager,SplitManagerImpl
public interface SplitManagerAn interface to manage an instance of Split SDK.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidblockUntilReady()The SDK kicks off background threads to download data necessary for using the SDK.SplitViewsplit(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.
-
-
-
Method Detail
-
splits
List<SplitView> splits()
Retrieves the features (or Splits) that are currently registered with the SDK.- Returns:
- a List of SplitView or empty
-
split
SplitView split(String featureName)
Returns the feature (or Split) registered with the SDK of this name.- Returns:
- SplitView or null
-
splitNames
List<String> splitNames()
Returns the names of features (or Splits) registered with the SDK.- Returns:
- a List of String (Split Feature Names) or empty
-
blockUntilReady
void blockUntilReady() throws TimeoutException, InterruptedExceptionThe SDK kicks off background threads to download data necessary for using the SDK. You can choose to block until the SDK has downloaded split definitions so that you will not get the 'control' treatment.If the download is not successful in the time period set on
SplitClientConfig.Builder.setBlockUntilReadyTimeout(int), a TimeoutException will be thrown.- Throws:
TimeoutExceptionInterruptedException
-
-