public final class ConfigChangeContext extends Object
AbstractMutablePropertySource
.Constructor and Description |
---|
ConfigChangeContext(UUID transactionID)
Creates a new instance bound to the given transaction.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
Map<String,String> |
getAddedProperties()
Get an unmodifiable key/value map of properties added or updated.
|
Set<String> |
getRemovedProperties()
Get an unmodifiable key set of properties removed.
|
long |
getStartedAt()
Timestamp in UTC millis, when this transaction (context) was created.
|
UUID |
getTransactionID()
Get the corresppnding transaction ID of this instance.
|
int |
hashCode() |
boolean |
isEmpty()
Allows easily to check if no additions/changes an no removals are present in the current transaction.
|
void |
put(String key,
String value)
Adds/updates a new key/value pair.
|
void |
putAll(Map<String,String> properties)
Add/updated multiple key/values.
|
void |
removeAll(Collection<String> keys)
Remove all the given keys, ir present.
|
String |
toString() |
public ConfigChangeContext(UUID transactionID)
transactionID
- the transaction ID, not null.public UUID getTransactionID()
public long getStartedAt()
public Map<String,String> getAddedProperties()
public Set<String> getRemovedProperties()
public void put(String key, String value)
key
- the key, not null.value
- the value, not null.public void putAll(Map<String,String> properties)
properties
- the keys and values to be added/updated, not null.public void removeAll(Collection<String> keys)
keys
- the keys to be removed, not null.public boolean isEmpty()
Copyright © 2014–2016 Apache Software Foundation. All rights reserved.