public interface SelfManagedConfigurationFactory
| Modifier and Type | Method and Description |
|---|---|
void |
addConfigurationListener(ConfigurationListener listener)
Add a new configuration listener to the factory
|
NotifyFuture<Configuration> |
delete(String configurationId) |
NotifyFuture<Void> |
purge()
Delete all configurations at once
|
void |
removeConfigurationListener(ConfigurationListener listener)
Remove a listener from the factory
|
NotifyFuture<Configuration> |
update(String configurationId,
Map<String,String> properties,
boolean fullSet) |
void addConfigurationListener(ConfigurationListener listener)
If the listener is already registered the method has no effect.
The listener is added to the factory and will receive updates from now on. Before the method return it will call the listener once with the already known configuration element using an "add" notification.
listener - The new listener to addvoid removeConfigurationListener(ConfigurationListener listener)
If the listener is not currently attache to the factory the call has no effect.
listener - NotifyFuture<Configuration> update(String configurationId, Map<String,String> properties, boolean fullSet)
NotifyFuture<Configuration> delete(String configurationId)
NotifyFuture<Void> purge()