org.jboss.cache.pojo.notification.event
Class MapModifiedEvent
java.lang.Object
java.util.EventObject
org.jboss.cache.pojo.notification.event.Event
org.jboss.cache.pojo.notification.event.MapModifiedEvent
- All Implemented Interfaces:
- java.io.Serializable
public final class MapModifiedEvent
- extends Event
A notification that indicates an attached Map was modified.
- Author:
- Jason T. Greene
- See Also:
- Serialized Form
Fields inherited from class java.util.EventObject |
source |
Methods inherited from class java.util.EventObject |
toString |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
MapModifiedEvent
public MapModifiedEvent(NotificationContext context,
java.util.Map source,
MapModifiedEvent.Operation operation,
java.lang.Object key,
java.lang.Object value,
boolean local)
getOperation
public MapModifiedEvent.Operation getOperation()
- Gets the operation of this change.
- Returns:
- the operation.
getValue
public java.lang.Object getValue()
- Gets the new value for this change. Returns null on a remove operation.
- Returns:
- the new value, or null if remove
getKey
public java.lang.Object getKey()
- Gets the key for the modified entry.
- Returns:
- the key
getSource
public java.util.Map getSource()
- Overrides:
getSource
in class java.util.EventObject