Class DevCycleCloudClient

    • Constructor Detail

      • DevCycleCloudClient

        public DevCycleCloudClient​(java.lang.String sdkKey)
      • DevCycleCloudClient

        public DevCycleCloudClient​(java.lang.String sdkKey,
                                   DevCycleCloudOptions options)
    • Method Detail

      • isInitialized

        public boolean isInitialized()
        Specified by:
        isInitialized in interface IDevCycleClient
        Returns:
        true if the client is initialized and ready to be used. Clients should return a default value if they are not initialized.
      • variableValue

        public <T> T variableValue​(DevCycleUser user,
                                   java.lang.String key,
                                   T defaultValue)
        Get variable value by key for user data
        Specified by:
        variableValue in interface IDevCycleClient
        Parameters:
        user - (required)
        key - Feature key (required)
        defaultValue - Default value to use if the variable could not be fetched (required)
        Returns:
        Variable value
        Throws:
        java.lang.IllegalArgumentException - If there are any issues with the key or default value provided
      • variable

        public <T> Variable<T> variable​(DevCycleUser user,
                                        java.lang.String key,
                                        T defaultValue)
        Get variable by key for user data
        Specified by:
        variable in interface IDevCycleClient
        Parameters:
        user - (required)
        key - Variable key (required)
        defaultValue - Default value to use if the variable could not be fetched (required)
        Returns:
        Variable
        Throws:
        java.lang.IllegalArgumentException - If there are any issues with the key or default value provided
      • close

        public void close()
        Description copied from interface: IDevCycleClient
        Close the client and release any resources.
        Specified by:
        close in interface IDevCycleClient
      • getOpenFeatureProvider

        public dev.openfeature.sdk.FeatureProvider getOpenFeatureProvider()
        Specified by:
        getOpenFeatureProvider in interface IDevCycleClient
        Returns:
        the OpenFeature provider for this client.