org.jboss.cache.pojo.notification.event
Class MapModifiedEvent

java.lang.Object
  extended by java.util.EventObject
      extended by org.jboss.cache.pojo.notification.event.Event
          extended by org.jboss.cache.pojo.notification.event.MapModifiedEvent
All Implemented Interfaces:
Serializable

public final class MapModifiedEvent
extends Event

A notification that indicates an attached Map was modified.

Author:
Jason T. Greene
See Also:
Serialized Form

Nested Class Summary
static class MapModifiedEvent.Operation
           
 
Field Summary
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
MapModifiedEvent(NotificationContext context, Map source, MapModifiedEvent.Operation operation, Object key, Object value, boolean local)
           
 
Method Summary
 Object getKey()
          Gets the key for the modified entry.
 MapModifiedEvent.Operation getOperation()
          Gets the operation of this change.
 Map getSource()
           
 Object getValue()
          Gets the new value for this change.
 
Methods inherited from class org.jboss.cache.pojo.notification.event.Event
getContext, isLocal
 
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
 

Constructor Detail

MapModifiedEvent

public MapModifiedEvent(NotificationContext context,
                        Map source,
                        MapModifiedEvent.Operation operation,
                        Object key,
                        Object value,
                        boolean local)
Method Detail

getOperation

public MapModifiedEvent.Operation getOperation()
Gets the operation of this change.

Returns:
the operation.

getValue

public 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 Object getKey()
Gets the key for the modified entry.

Returns:
the key

getSource

public Map getSource()
Overrides:
getSource in class EventObject


Copyright © 2008 JBoss, a division of Red Hat. All Rights Reserved.