com.hazelcast.core
Interface EntryListener<K,V>

Type Parameters:
K - key of the map entry
V - value of the map entry.
All Superinterfaces:
EventListener
All Known Implementing Classes:
EntryAdapter

public interface EntryListener<K,V>
extends EventListener

Map Entry listener to get notified when a map entry is added, removed, updated or evicted.

See Also:
IMap.addEntryListener(EntryListener, boolean)

Method Summary
 void entryAdded(EntryEvent<K,V> event)
          Invoked when an entry is added.
 void entryEvicted(EntryEvent<K,V> event)
          Invoked when an entry is evicted.
 void entryRemoved(EntryEvent<K,V> event)
          Invoked when an entry is removed.
 void entryUpdated(EntryEvent<K,V> event)
          Invoked when an entry is updated.
 

Method Detail

entryAdded

void entryAdded(EntryEvent<K,V> event)
Invoked when an entry is added.

Parameters:
event - entry event

entryRemoved

void entryRemoved(EntryEvent<K,V> event)
Invoked when an entry is removed.

Parameters:
event - entry event

entryUpdated

void entryUpdated(EntryEvent<K,V> event)
Invoked when an entry is updated.

Parameters:
event - entry event

entryEvicted

void entryEvicted(EntryEvent<K,V> event)
Invoked when an entry is evicted.

Parameters:
event - entry event


Copyright 2008-2012 Hazel Ltd. All Rights Reserved.