public class HAMemEvictionListener extends HANoFailoverClientListener
HANoFailoverClientListener. The callback
methods are overwritten to validate the order of the data coming via the
events.| Constructor and Description |
|---|
HAMemEvictionListener() |
| Modifier and Type | Method and Description |
|---|---|
void |
afterCreate(com.gemstone.gemfire.cache.EntryEvent event)
This method performs the following tasks:
1)Increment the count of afterCreate in Validator 2)Verify that value received in the event is not null as Feeder always does create() on a key with a Long value. |
void |
afterDestroy(com.gemstone.gemfire.cache.EntryEvent event)
This method performs the following tasks:
If the old value is null, it implies that Feeder did a invalidate() in its previous operation on this key and hence no need to update the local latestValues map. |
void |
afterInvalidate(com.gemstone.gemfire.cache.EntryEvent event)
This method performs the following tasks:
1)Increment the count of afterInvalidate in Validator |
void |
afterUpdate(com.gemstone.gemfire.cache.EntryEvent event)
This method performs the following tasks:
1)Increment the count of afterUpdate in Validator 2)Verify that value received in the event is not null as Feeder always generates update on a key with a Long value one more than the previous one on this key. |
throwExceptionpublic void afterCreate(com.gemstone.gemfire.cache.EntryEvent event)
afterCreate in interface com.gemstone.gemfire.cache.CacheListenerafterCreate in class HANoFailoverClientListenerevent - -
the entry event received in callbackpublic void afterUpdate(com.gemstone.gemfire.cache.EntryEvent event)
afterUpdate in interface com.gemstone.gemfire.cache.CacheListenerafterUpdate in class HANoFailoverClientListenerevent - -
the entry event received in callbackpublic void afterInvalidate(com.gemstone.gemfire.cache.EntryEvent event)
afterInvalidate in interface com.gemstone.gemfire.cache.CacheListenerafterInvalidate in class HANoFailoverClientListenerevent - -
the entry event received in callbackpublic void afterDestroy(com.gemstone.gemfire.cache.EntryEvent event)
latestValues map.
1)Increment the count of afterDestroy in ValidatorafterDestroy in interface com.gemstone.gemfire.cache.CacheListenerafterDestroy in class HANoFailoverClientListenerevent - -
the entry event received in callbackCopyright © 2010-2015 Pivotal Software, Inc. All rights reserved.