Class ConfigManager

  • All Implemented Interfaces:

    
    public final class ConfigManager
    
                        

    This class is responsible for managing the Configs fetched from the UnifiedSdk. It fetches the configs from the DB and then fetches the expired configs from the Network. It also returns the default configs if the configs are not available.

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      final Unit start()
      final Unit onAccountIdChanged() Clears the config table when the account ID changes, so that new set of configs can be fetched from the Network.
      final <T extends Config> T getConfig(Class<T> clazz)
      final Unit attachListener(String type, ConfigUpdateListener listener) Attaches a ConfigUpdateListener for the specified config type, if the cached config is Expired.
      final Unit clear()
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait