public interface WatchedConfigurationSource
Modifier and Type | Method and Description |
---|---|
void |
addUpdateListener(WatchedUpdateListener l)
Add
WatchedUpdateListener listener |
java.util.Map<java.lang.String,java.lang.Object> |
getCurrentData()
Get a snapshot of the latest configuration data.
Note: The correctness of this data is only as good as the underlying config source's view of the data. |
void |
removeUpdateListener(WatchedUpdateListener l)
Remove
WatchedUpdateListener listener |
void addUpdateListener(WatchedUpdateListener l)
WatchedUpdateListener
listenerl
- void removeUpdateListener(WatchedUpdateListener l)
WatchedUpdateListener
listenerl
- java.util.Map<java.lang.String,java.lang.Object> getCurrentData() throws java.lang.Exception
java.lang.Exception