Interface IGBFeaturesRepository

All Known Implementing Classes:
GBFeaturesRepository, LocalGbFeatureRepository, NativeJavaGbFeatureRepository

public interface IGBFeaturesRepository
INTERNAL: Interface that is used internally for the GBFeaturesRepository
  • Method Details

    • initialize

      void initialize() throws FeatureFetchException
      Throws:
      FeatureFetchException
    • initialize

      void initialize(Boolean retryOnFailure) throws FeatureFetchException
      Throws:
      FeatureFetchException
    • getFeaturesJson

      String getFeaturesJson()
      Required implementation to get the featuresJson
      Returns:
      featuresJson String
    • onFeaturesRefresh

      void onFeaturesRefresh(FeatureRefreshCallback callback)
    • clearCallbacks

      void clearCallbacks()
      Clears the feature refresh callbacks
    • getLastRefreshError

      @Nullable default Throwable getLastRefreshError()
      Returns the most recent feature refresh error, if any. Used for diagnostics only.
      Returns:
      the last refresh Throwable, or null when no refresh has failed
    • getLastRefreshErrorAtMillis

      default long getLastRefreshErrorAtMillis()
      Returns the epoch-millis timestamp of the most recent feature refresh error. Used for diagnostics only.
      Returns:
      the timestamp in milliseconds, or 0 when no refresh has failed
    • getRefreshSuccessCount

      default long getRefreshSuccessCount()
    • getRefreshFailureCount

      default long getRefreshFailureCount()
    • getRefreshConsecutiveFailureCount

      default long getRefreshConsecutiveFailureCount()
    • getLastRefreshFailureAtMillis

      default long getLastRefreshFailureAtMillis()
    • getLastRefreshLoadedFromCache

      @Nullable default Boolean getLastRefreshLoadedFromCache()