public class ConfigChangeEvent extends Object
| Constructor and Description |
|---|
ConfigChangeEvent(String namespace,
Map<String,ConfigChange> changes)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
Set<String> |
changedKeys()
Get the keys changed.
|
ConfigChange |
getChange(String key)
Get a specific change instance for the key specified.
|
String |
getNamespace()
Get the namespace of this change event.
|
Set<String> |
interestedChangedKeys()
Maybe subclass override this method.
|
boolean |
isChanged(String key)
Check whether the specified key is changed
|
public ConfigChangeEvent(String namespace, Map<String,ConfigChange> changes)
namespace - the namespace of this changechanges - the actual changespublic Set<String> interestedChangedKeys()
public ConfigChange getChange(String key)
key - the changed keypublic boolean isChanged(String key)
key - the keypublic String getNamespace()
Copyright © 2022 Ctrip, Inc.. All rights reserved.