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:
java.io.Serializable

public class EntryEvent<K,V>
extends java.util.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  java.lang.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(java.lang.Object source)
           
EntryEvent(java.lang.Object source, Member member, int eventType, K key, V value)
           
EntryEvent(java.lang.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.
 java.lang.String getName()
          Returns the name of the map for this event.
 V getOldValue()
          Returns the old value of the entry event
 java.lang.Object getSource()
           
 V getValue()
          Returns the value of the entry event
 java.lang.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 java.lang.String name

collection

protected boolean collection
Constructor Detail

EntryEvent

public EntryEvent(java.lang.Object source)

EntryEvent

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

EntryEvent

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

getSource

public java.lang.Object getSource()
Overrides:
getSource in class java.util.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 java.lang.String getName()
Returns the name of the map for this event.

Returns:
name of the map.

toString

public java.lang.String toString()
Overrides:
toString in class java.util.EventObject


Copyright .9.4.5; 2008-2011 Hazel Ltd. All Rights Reserved.