com.netflix.config
Interface WatchedConfigurationSource


public interface WatchedConfigurationSource

The definition of configuration source that brings dynamic changes to the configuration via watchers.


Method Summary
 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
 

Method Detail

addUpdateListener

void addUpdateListener(WatchedUpdateListener l)
Add WatchedUpdateListener listener

Parameters:
l -

removeUpdateListener

void removeUpdateListener(WatchedUpdateListener l)
Remove WatchedUpdateListener listener

Parameters:
l -

getCurrentData

java.util.Map<java.lang.String,java.lang.Object> getCurrentData()
                                                                throws java.lang.Exception
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.

Throws:
java.lang.Exception