Package tech.muyan.api
Interface DynamicConfigService
-
public interface DynamicConfigServiceA service for getting DynamicConfig values.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description StorageFieldValuegetAttachmentByKey(java.lang.String key)java.lang.StringgetByKey(java.lang.String key)Get the value of the DynamicConfig with key.java.lang.StringgetByKeyOrDefault(java.lang.String key, java.lang.String defaultValue)Get the value of the DynamicConfig with key or the default value if the key does not exist.
-
-
-
Method Detail
-
getByKey
java.lang.String getByKey(java.lang.String key)
Get the value of the DynamicConfig with key.- Parameters:
key- the key to get the DynamicConfig value for- Returns:
- the value of the DynamicConfig with key
-
getByKeyOrDefault
java.lang.String getByKeyOrDefault(java.lang.String key, java.lang.String defaultValue)Get the value of the DynamicConfig with key or the default value if the key does not exist.- Parameters:
key- the key to get the DynamicConfig value fordefaultValue- the default value to return if the key does not exist- Returns:
- the value of the DynamicConfig with key or the default value if the key does not exist
-
getAttachmentByKey
StorageFieldValue getAttachmentByKey(java.lang.String key)
-
-