org.jboss.cache.notifications.event
Interface NodeModifiedEvent
- All Superinterfaces:
- Event, NodeEvent, TransactionalEvent
- All Known Implementing Classes:
- EventImpl
public interface NodeModifiedEvent
- extends NodeEvent
This event is passed in to any method annotated with NodeModified
- Since:
- 2.0.0
- Author:
- Manik Surtani
Nested classes/interfaces inherited from interface org.jboss.cache.notifications.event.Event |
Event.Type |
Methods inherited from interface org.jboss.cache.notifications.event.NodeEvent |
getFqn |
getModificationType
NodeModifiedEvent.ModificationType getModificationType()
- Returns:
- an instance of the
NodeModifiedEvent.ModificationType
enumeration.
getData
Map getData()
- When called with isPre() == true, this is the initial state of the
Node
before modification.
When called with isPre() == false, this depends on the value of getModificationType():
Implementations interested in seeing the difference in the node data in the 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)
- Returns:
- Unmodifiable
Map
; will not be null
. See description above.
Copyright © 2008 JBoss, a division of Red Hat. All Rights Reserved.