public class CertifiableTestCacheListener extends TestCacheListener implements com.gemstone.gemfire.internal.cache.xmlcache.Declarable2
| Modifier and Type | Field and Description |
|---|---|
Set |
creates |
Set |
destroys |
Set |
invalidates |
static long |
MAX_TIME |
Set |
updates |
callbackError| Constructor and Description |
|---|
CertifiableTestCacheListener(com.gemstone.gemfire.LogWriter l) |
| Modifier and Type | Method and Description |
|---|---|
void |
afterCreate2(com.gemstone.gemfire.cache.EntryEvent event) |
void |
afterDestroy2(com.gemstone.gemfire.cache.EntryEvent event) |
void |
afterInvalidate2(com.gemstone.gemfire.cache.EntryEvent event) |
void |
afterUpdate2(com.gemstone.gemfire.cache.EntryEvent event) |
void |
clearState()
Clears the state of the listener, for consistent behavior
this should only be called when there is no activity on the
Region
|
Properties |
getConfig() |
List |
getEventHistory()
Returns a copy of the list of events collected in this listener's history.
|
void |
init(Properties props) |
boolean |
waitForCreated(Object key) |
boolean |
waitForDestroyed(Object key) |
boolean |
waitForInvalidated(Object key) |
boolean |
waitForUpdated(Object key) |
afterCreate, afterDestroy, afterDestroyBeforeAddEvent, afterInvalidate, afterRegionClear, afterRegionCreate, afterRegionDestroy, afterRegionDestroy2, afterRegionDestroyBeforeAddEvent, afterRegionInvalidate, afterRegionInvalidate2, afterRegionLive, afterUpdate, disableEventHistory, enableEventHistoryclose, close2, isClosed, waitForInvocation, wasInvokedpublic final Set destroys
public final Set creates
public final Set invalidates
public final Set updates
public static final long MAX_TIME
public CertifiableTestCacheListener(com.gemstone.gemfire.LogWriter l)
public void clearState()
public List getEventHistory()
TestCacheListenergetEventHistory in class TestCacheListenerpublic void afterCreate2(com.gemstone.gemfire.cache.EntryEvent event)
afterCreate2 in class TestCacheListenerpublic void afterDestroy2(com.gemstone.gemfire.cache.EntryEvent event)
afterDestroy2 in class TestCacheListenerpublic void afterInvalidate2(com.gemstone.gemfire.cache.EntryEvent event)
afterInvalidate2 in class TestCacheListenerpublic void afterUpdate2(com.gemstone.gemfire.cache.EntryEvent event)
afterUpdate2 in class TestCacheListenerpublic boolean waitForCreated(Object key)
public boolean waitForDestroyed(Object key)
public boolean waitForInvalidated(Object key)
public boolean waitForUpdated(Object key)
public Properties getConfig()
getConfig in interface com.gemstone.gemfire.internal.cache.xmlcache.Declarable2public void init(Properties props)
init in interface com.gemstone.gemfire.cache.DeclarableCopyright © 2010-2015 Pivotal Software, Inc. All rights reserved.