Package io.split.client
Class SplitManagerImpl
- java.lang.Object
-
- io.split.client.SplitManagerImpl
-
- All Implemented Interfaces:
SplitManager
public class SplitManagerImpl extends Object implements SplitManager
Created by adilaijaz on 7/15/16.
-
-
Constructor Summary
Constructors Constructor Description SplitManagerImpl(SplitCacheConsumer splitCacheConsumer, SplitClientConfig config, SDKReadinessGates gates, TelemetryConfigProducer telemetryConfigProducer)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidblockUntilReady()The SDK kicks off background threads to download data necessary for using the SDK.SplitViewsplit(String featureFlagName)Returns the feature flag registered with the SDK of this name.List<String>splitNames()Returns the names of feature flags registered with the SDK.List<SplitView>splits()Retrieves the feature flags that are currently registered with the SDK.
-
-
-
Constructor Detail
-
SplitManagerImpl
public SplitManagerImpl(SplitCacheConsumer splitCacheConsumer, SplitClientConfig config, SDKReadinessGates gates, TelemetryConfigProducer telemetryConfigProducer)
-
-
Method Detail
-
splits
public List<SplitView> splits()
Description copied from interface:SplitManagerRetrieves the feature flags that are currently registered with the SDK.- Specified by:
splitsin interfaceSplitManager- Returns:
- a List of SplitView or empty
-
split
public SplitView split(String featureFlagName)
Description copied from interface:SplitManagerReturns the feature flag registered with the SDK of this name.- Specified by:
splitin interfaceSplitManager- Returns:
- SplitView or null
-
splitNames
public List<String> splitNames()
Description copied from interface:SplitManagerReturns the names of feature flags registered with the SDK.- Specified by:
splitNamesin interfaceSplitManager- Returns:
- a List of String (Feature Flag Names) or empty
-
blockUntilReady
public void blockUntilReady() throws TimeoutException, InterruptedExceptionDescription copied from interface:SplitManagerThe SDK kicks off background threads to download data necessary for using the SDK. You can choose to block until the SDK has downloaded feature flag 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.- Specified by:
blockUntilReadyin interfaceSplitManager- Throws:
TimeoutExceptionInterruptedException
-
-