org.infinispan.notifications.cachelistener.event
Interface CacheEntryRemovedEvent<K,V>

All Superinterfaces:
CacheEntryEvent<K,V>, Event<K,V>, TransactionalEvent<K,V>
All Known Implementing Classes:
EventImpl

public interface CacheEntryRemovedEvent<K,V>
extends CacheEntryEvent<K,V>

This event subtype is passed in to any method annotated with CacheEntryRemoved.

The getValue() method would return the old value prior to deletion, if isPre() is true. If isPre() is false, getValue() will return null.

Since:
4.0
Author:
Manik Surtani

Nested Class Summary
 
Nested classes/interfaces inherited from interface org.infinispan.notifications.cachelistener.event.Event
Event.Type
 
Method Summary
 V getValue()
          Retrieves the value of the entry being deleted.
 
Methods inherited from interface org.infinispan.notifications.cachelistener.event.CacheEntryEvent
getKey
 
Methods inherited from interface org.infinispan.notifications.cachelistener.event.TransactionalEvent
getGlobalTransaction, isOriginLocal
 
Methods inherited from interface org.infinispan.notifications.cachelistener.event.Event
getCache, getType, isPre
 

Method Detail

getValue

V getValue()
Retrieves the value of the entry being deleted.

Returns:
the value of the entry being deleted, if isPre() is true. null otherwise.

-->

Copyright © 2011 JBoss, a division of Red Hat. All Rights Reserved.