|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface NodeModifiedEvent
This event is passed in to any method annotated with NodeModified
| Nested Class Summary | |
|---|---|
static class |
NodeModifiedEvent.ModificationType
Different cache modification types. |
| Nested classes/interfaces inherited from interface org.jboss.cache.notifications.event.Event |
|---|
Event.Type |
| Method Summary | |
|---|---|
java.util.Map |
getData()
When called with isPre() == true, this is the initial state of the Node
before modification. |
NodeModifiedEvent.ModificationType |
getModificationType()
|
| Methods inherited from interface org.jboss.cache.notifications.event.NodeEvent |
|---|
getFqn |
| Methods inherited from interface org.jboss.cache.notifications.event.TransactionalEvent |
|---|
getTransaction, isOriginLocal |
| Methods inherited from interface org.jboss.cache.notifications.event.Event |
|---|
getCache, getType, isPre |
| Method Detail |
|---|
NodeModifiedEvent.ModificationType getModificationType()
NodeModifiedEvent.ModificationType enumeration.java.util.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.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||