Package 

Interface ConfigurationProvider

    • Method Detail

      • getValue

         abstract <T> T getValue(Class<T> classOfT, String key, T defaultValue)

        Gets the value of a feature flag or setting as T identified by the given {@code key}.

        Parameters:
        classOfT - the class of T.
        key - the identifier of a feature flag or setting.
        defaultValue - in case of any failure, this value will be returned.
      • getValue

         abstract <T> T getValue(Class<T> classOfT, String key, User user, T defaultValue)

        Gets the value of a feature flag or setting as T identified by the given {@code key}.

        Parameters:
        classOfT - the class of T.
        key - the identifier of a feature flag or setting.
        user - the user object.
        defaultValue - in case of any failure, this value will be returned.
      • getValueAsync

         abstract <T> CompletableFuture<T> getValueAsync(Class<T> classOfT, String key, T defaultValue)

        Gets the value of a feature flag or setting as T asynchronously identified by the given {@code key}.

        Parameters:
        classOfT - the class of T.
        key - the identifier of a feature flag or setting.
        defaultValue - in case of any failure, this value will be returned.
      • getValueAsync

         abstract <T> CompletableFuture<T> getValueAsync(Class<T> classOfT, String key, User user, T defaultValue)

        Gets the value of a feature flag or setting as T asynchronously identified by the given {@code key}.

        Parameters:
        classOfT - the class of T.
        key - the identifier of a feature flag or setting.
        user - the user object.
        defaultValue - in case of any failure, this value will be returned.
      • getValueDetails

         abstract <T> EvaluationDetails<T> getValueDetails(Class<T> classOfT, String key, T defaultValue)

        Gets the value of a feature flag or setting as T identified by the given {@code key}.

        Parameters:
        classOfT - the class of T.
        key - the identifier of a feature flag or setting.
        defaultValue - in case of any failure, this value will be returned.
      • getValueDetails

         abstract <T> EvaluationDetails<T> getValueDetails(Class<T> classOfT, String key, User user, T defaultValue)

        Gets the value of a feature flag or setting as T identified by the given {@code key}.

        Parameters:
        classOfT - the class of T.
        key - the identifier of a feature flag or setting.
        user - the user object.
        defaultValue - in case of any failure, this value will be returned.
      • getValueDetailsAsync

         abstract <T> CompletableFuture<EvaluationDetails<T>> getValueDetailsAsync(Class<T> classOfT, String key, T defaultValue)

        Gets the value of a feature flag or setting as T asynchronously identified by the given {@code key}.

        Parameters:
        classOfT - the class of T.
        key - the identifier of a feature flag or setting.
        defaultValue - in case of any failure, this value will be returned.
      • getValueDetailsAsync

         abstract <T> CompletableFuture<EvaluationDetails<T>> getValueDetailsAsync(Class<T> classOfT, String key, User user, T defaultValue)

        Gets the value of a feature flag or setting as T asynchronously identified by the given {@code key}.

        Parameters:
        classOfT - the class of T.
        key - the identifier of a feature flag or setting.
        user - the user object.
        defaultValue - in case of any failure, this value will be returned.
      • getAllValues

         abstract Map<String, Object> getAllValues(User user)

        Gets the values of all feature flags or settings synchronously.

        Parameters:
        user - the user object.
      • getAllValuesAsync

         abstract CompletableFuture<Map<String, Object>> getAllValuesAsync(User user)

        Gets the values of all feature flags or settings asynchronously.

        Parameters:
        user - the user object.
      • getKeyAndValue

         abstract <T> Map.Entry<String, T> getKeyAndValue(Class<T> classOfT, String variationId)

        Gets the key of a setting and its value identified by the given Variation ID (analytics).

        Parameters:
        classOfT - the class of T.
        variationId - the Variation ID.
      • getKeyAndValueAsync

         abstract <T> CompletableFuture<Map.Entry<String, T>> getKeyAndValueAsync(Class<T> classOfT, String variationId)

        Gets the key of a setting and its value identified by the given Variation ID (analytics).

        Parameters:
        classOfT - the class of T.
        variationId - the Variation ID.
      • forceRefreshAsync

         abstract CompletableFuture<RefreshResult> forceRefreshAsync()

        Initiates a force refresh asynchronously on the cached configuration.

      • setDefaultUser

         abstract void setDefaultUser(User user)

        Sets the default user.

        Parameters:
        user - the default user.
      • clearDefaultUser

         abstract void clearDefaultUser()

        Sets the default user to null.

      • setOnline

         abstract void setOnline()

        Configures the SDK to allow HTTP requests.

      • setOffline

         abstract void setOffline()

        Configures the SDK to not initiate HTTP requests and work only from its cache.

      • isOffline

         abstract boolean isOffline()

        Indicates whether the SDK is in offline mode or not.

      • isClosed

         abstract boolean isClosed()

        Get the client closed status.