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  EntryEventType entryEventType
           
protected  K key
           
protected  Member member
           
protected  String name
           
protected  V oldValue
           
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

entryEventType

protected final EntryEventType entryEventType

key

protected K key

oldValue

protected V oldValue

value

protected V value

member

protected final Member member

name

protected final String name
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 © 2014 Hazelcast, Inc.. All Rights Reserved.