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

java.lang.Object
  extended by com.hazelcast.core.EntryAdapter<K,V>
Type Parameters:
K - key of the map entry
V - value of the map entry.
All Implemented Interfaces:
EntryListener<K,V>, EventListener

public class EntryAdapter<K,V>
extends Object
implements EntryListener<K,V>

Adapter for EntryListener.

See Also:
EntryListener

Constructor Summary
EntryAdapter()
           
 
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.
 void mapCleared(MapEvent event)
          Invoked when all entries are removed by IMap.clear().
 void mapEvicted(MapEvent event)
          Invoked when all entries are evicted by IMap.evictAll().
 void onEntryEvent(EntryEvent<K,V> event)
          This method is called when an one of the methods of the EntryListener is not overridden.
 void onMapEvent(MapEvent event)
          This method is called when an one of the methods of the EntryListener is not overridden.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EntryAdapter

public EntryAdapter()
Method Detail

entryAdded

public void entryAdded(EntryEvent<K,V> event)
Description copied from interface: EntryListener
Invoked when an entry is added.

Specified by:
entryAdded in interface EntryListener<K,V>
Parameters:
event - the event invoked when an entry is added

entryRemoved

public void entryRemoved(EntryEvent<K,V> event)
Description copied from interface: EntryListener
Invoked when an entry is removed.

Specified by:
entryRemoved in interface EntryListener<K,V>
Parameters:
event - the event invoked when an entry is removed

entryUpdated

public void entryUpdated(EntryEvent<K,V> event)
Description copied from interface: EntryListener
Invoked when an entry is updated.

Specified by:
entryUpdated in interface EntryListener<K,V>
Parameters:
event - the event invoked when an entry is updated

entryEvicted

public void entryEvicted(EntryEvent<K,V> event)
Description copied from interface: EntryListener
Invoked when an entry is evicted.

Specified by:
entryEvicted in interface EntryListener<K,V>
Parameters:
event - the event invoked when an entry is evicted

mapEvicted

public void mapEvicted(MapEvent event)
Description copied from interface: EntryListener
Invoked when all entries are evicted by IMap.evictAll().

Specified by:
mapEvicted in interface EntryListener<K,V>
Parameters:
event - the map event invoked when all entries are evicted by IMap.evictAll()

mapCleared

public void mapCleared(MapEvent event)
Description copied from interface: EntryListener
Invoked when all entries are removed by IMap.clear().

Specified by:
mapCleared in interface EntryListener<K,V>
Parameters:
event - the map event invoked when all entries are removed by IMap.clear()

onEntryEvent

public void onEntryEvent(EntryEvent<K,V> event)
This method is called when an one of the methods of the EntryListener is not overridden. It can be practical if you want to bundle some/all of the methods to a single method.

Parameters:
event - the EntryEvent.

onMapEvent

public void onMapEvent(MapEvent event)
This method is called when an one of the methods of the EntryListener is not overridden. It can be practical if you want to bundle some/all of the methods to a single method.

Parameters:
event - the MapEvent.


Copyright © 2015 Hazelcast, Inc.. All Rights Reserved.