Package io.split.engine
Class SDKReadinessGates
- java.lang.Object
-
- io.split.engine.SDKReadinessGates
-
public class SDKReadinessGates extends Object
Created by adilaijaz on 4/27/16.
-
-
Constructor Summary
Constructors Constructor Description SDKReadinessGates()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanisSDKReady()voidsdkInternalReady()booleanwaitUntilInternalReady(long milliseconds)Returns true if the SDK is ready.
-
-
-
Method Detail
-
waitUntilInternalReady
public boolean waitUntilInternalReady(long milliseconds) throws InterruptedExceptionReturns true if the SDK is ready. The SDK is ready when:- It has fetched Feature flag definitions the first time.
- It has downloaded segment memberships for segments in use in the initial Feature flag definitions
- Parameters:
milliseconds- time to wait for an answer. if the value is zero or negative, we will not block for an answer.- Returns:
- true if the sdk is ready, false otherwise.
- Throws:
InterruptedException- if this operation was interrupted.
-
isSDKReady
public boolean isSDKReady()
-
sdkInternalReady
public void sdkInternalReady()
-
-