public abstract class TestCacheListener extends TestCacheCallback implements com.gemstone.gemfire.cache.CacheListener
CacheListener used in testing. Its callback methods
are implemented to thrown UnsupportedOperationException
unless the user overrides the "2" methods.TestCacheCallback.wasInvoked()callbackError| Constructor and Description |
|---|
TestCacheListener() |
| Modifier and Type | Method and Description |
|---|---|
void |
afterCreate(com.gemstone.gemfire.cache.EntryEvent event) |
void |
afterCreate2(com.gemstone.gemfire.cache.EntryEvent event) |
void |
afterDestroy(com.gemstone.gemfire.cache.EntryEvent event) |
void |
afterDestroy2(com.gemstone.gemfire.cache.EntryEvent event) |
void |
afterDestroyBeforeAddEvent(com.gemstone.gemfire.cache.EntryEvent event) |
void |
afterInvalidate(com.gemstone.gemfire.cache.EntryEvent event) |
void |
afterInvalidate2(com.gemstone.gemfire.cache.EntryEvent event) |
void |
afterRegionClear(com.gemstone.gemfire.cache.RegionEvent event) |
void |
afterRegionCreate(com.gemstone.gemfire.cache.RegionEvent event) |
void |
afterRegionDestroy(com.gemstone.gemfire.cache.RegionEvent event) |
void |
afterRegionDestroy2(com.gemstone.gemfire.cache.RegionEvent event) |
void |
afterRegionDestroyBeforeAddEvent(com.gemstone.gemfire.cache.RegionEvent event) |
void |
afterRegionInvalidate(com.gemstone.gemfire.cache.RegionEvent event) |
void |
afterRegionInvalidate2(com.gemstone.gemfire.cache.RegionEvent event) |
void |
afterRegionLive(com.gemstone.gemfire.cache.RegionEvent event) |
void |
afterUpdate(com.gemstone.gemfire.cache.EntryEvent event) |
void |
afterUpdate2(com.gemstone.gemfire.cache.EntryEvent event) |
void |
disableEventHistory()
Disables collection of events.
|
void |
enableEventHistory()
Enables collection of event history.
|
List |
getEventHistory()
Returns a copy of the list of events collected in this listener's history.
|
close, close2, isClosed, waitForInvocation, wasInvokedpublic void enableEventHistory()
public void disableEventHistory()
public List getEventHistory()
public final void afterCreate(com.gemstone.gemfire.cache.EntryEvent event)
afterCreate in interface com.gemstone.gemfire.cache.CacheListenerpublic void afterCreate2(com.gemstone.gemfire.cache.EntryEvent event)
public final void afterUpdate(com.gemstone.gemfire.cache.EntryEvent event)
afterUpdate in interface com.gemstone.gemfire.cache.CacheListenerpublic void afterUpdate2(com.gemstone.gemfire.cache.EntryEvent event)
public final void afterInvalidate(com.gemstone.gemfire.cache.EntryEvent event)
afterInvalidate in interface com.gemstone.gemfire.cache.CacheListenerpublic void afterInvalidate2(com.gemstone.gemfire.cache.EntryEvent event)
public final void afterDestroy(com.gemstone.gemfire.cache.EntryEvent event)
afterDestroy in interface com.gemstone.gemfire.cache.CacheListenerpublic void afterDestroyBeforeAddEvent(com.gemstone.gemfire.cache.EntryEvent event)
public void afterDestroy2(com.gemstone.gemfire.cache.EntryEvent event)
public final void afterRegionInvalidate(com.gemstone.gemfire.cache.RegionEvent event)
afterRegionInvalidate in interface com.gemstone.gemfire.cache.CacheListenerpublic void afterRegionInvalidate2(com.gemstone.gemfire.cache.RegionEvent event)
public final void afterRegionDestroy(com.gemstone.gemfire.cache.RegionEvent event)
afterRegionDestroy in interface com.gemstone.gemfire.cache.CacheListenerpublic void afterRegionDestroyBeforeAddEvent(com.gemstone.gemfire.cache.RegionEvent event)
public void afterRegionDestroy2(com.gemstone.gemfire.cache.RegionEvent event)
public void afterRegionClear(com.gemstone.gemfire.cache.RegionEvent event)
afterRegionClear in interface com.gemstone.gemfire.cache.CacheListenerpublic void afterRegionCreate(com.gemstone.gemfire.cache.RegionEvent event)
afterRegionCreate in interface com.gemstone.gemfire.cache.CacheListenerpublic void afterRegionLive(com.gemstone.gemfire.cache.RegionEvent event)
afterRegionLive in interface com.gemstone.gemfire.cache.CacheListenerCopyright © 2010-2015 Pivotal Software, Inc. All rights reserved.