Class SDKReadinessGates


  • public class SDKReadinessGates
    extends Object
    Created by adilaijaz on 4/27/16.
    • Constructor Detail

      • SDKReadinessGates

        public SDKReadinessGates()
    • Method Detail

      • waitUntilInternalReady

        public boolean waitUntilInternalReady​(long milliseconds)
                                       throws InterruptedException
        Returns true if the SDK is ready. The SDK is ready when:
        1. It has fetched Feature flag definitions the first time.
        2. It has downloaded segment memberships for segments in use in the initial Feature flag definitions

        This operation will block until the SDK is ready or 'milliseconds' have passed. If the milliseconds are less than or equal to zero, the operation will not block and return immediately

        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()