com.hazelcast.core
Class EntryEvent<K,V>

java.lang.Object
  extended by java.util.EventObject
      extended by com.hazelcast.core.EntryEvent<K,V>
Type Parameters:
K - key of the map entry
V - value of the map entry
All Implemented Interfaces:
Serializable

public class EntryEvent<K,V>
extends EventObject

Map Entry event.

See Also:
EntryListener, IMap.addEntryListener(EntryListener, boolean), Serialized Form

Field Summary
protected  boolean collection
           
protected  EntryEventType entryEventType
           
protected  K key
           
protected  Member member
           
protected  String name
           
protected  V oldValue
           
static int TYPE_ADDED
           
static int TYPE_EVICTED
           
static int TYPE_REMOVED
           
static int TYPE_UPDATED
           
protected  V value
           
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
EntryEvent(Object source, Member member, int eventType, K key, V value)
           
EntryEvent(Object source, Member member, int eventType, K key, V oldValue, V value)
           
 
Method Summary
 EntryEventType getEventType()
          Return the event type
 K getKey()
          Returns the key of the entry event
 Member getMember()
          Returns the member fired this event.
 String getName()
          Returns the name of the map for this event.
 V getOldValue()
          Returns the old value of the entry event
 Object getSource()
           
 V getValue()
          Returns the value of the entry event
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

TYPE_ADDED

public static final int TYPE_ADDED

TYPE_REMOVED

public static final int TYPE_REMOVED

TYPE_UPDATED

public static final int TYPE_UPDATED

TYPE_EVICTED

public static final int TYPE_EVICTED

entryEventType

protected EntryEventType entryEventType

key

protected K key

oldValue

protected V oldValue

value

protected V value

member

protected Member member

name

protected final String name

collection

protected boolean collection
Constructor Detail

EntryEvent

public EntryEvent(Object source,
                  Member member,
                  int eventType,
                  K key,
                  V value)

EntryEvent

public EntryEvent(Object source,
                  Member member,
                  int eventType,
                  K key,
                  V oldValue,
                  V value)
Method Detail

getSource

public Object getSource()
Overrides:
getSource in class EventObject

getKey

public K getKey()
Returns the key of the entry event

Returns:
the key

getOldValue

public V getOldValue()
Returns the old value of the entry event

Returns:

getValue

public V getValue()
Returns the value of the entry event

Returns:

getMember

public Member getMember()
Returns the member fired this event.

Returns:
the member fired this event.

getEventType

public EntryEventType getEventType()
Return the event type

Returns:
event type

getName

public String getName()
Returns the name of the map for this event.

Returns:
name of the map.

toString

public String toString()
Overrides:
toString in class EventObject


Copyright © 2008-2012 Hazelcast, Inc. All Rights Reserved.