public interface NodeModifiedEvent extends NodeEvent
NodeModified| Modifier and Type | Interface and Description |
|---|---|
static class |
NodeModifiedEvent.ModificationType
Different cache modification types.
|
Event.Type| Modifier and Type | Method and Description |
|---|---|
Map |
getData()
When called with isPre() == true, this is the initial state of the
Node
before modification. |
NodeModifiedEvent.ModificationType |
getModificationType() |
getTransaction, isOriginLocalNodeModifiedEvent.ModificationType getModificationType()
NodeModifiedEvent.ModificationType enumeration.Map getData()
Node
before modification.
When called with isPre() == false, this depends on the value of getModificationType():
NodeModifiedEvent.ModificationType.PUT_DATA: Map contains the single key/value pair that was added or modified.NodeModifiedEvent.ModificationType.REMOVE_DATA: Map contains the key/value pairs that were removed.NodeModifiedEvent.ModificationType.PUT_MAP: Map contains the new state of the Node following modification. This map includes modified key/value
pairs as well as any that were not affected.NodeModifiedEvent.ModificationType.PUT_MAP case
can cache the value of getData() map passed when isPre() == true, and then when the
isPre() == false callback is received, pass the cached map and the new result of getData() to
Util.diffNodeData(java.util.Map,java.util.Map)Map; will not be null. See description above.Copyright © 2012 JBoss, a division of Red Hat. All Rights Reserved.