public class CertifiableTestCacheListener extends TestCacheListener implements org.apache.geode.internal.cache.xmlcache.Declarable2
| Modifier and Type | Field and Description |
|---|---|
java.util.Set |
creates |
java.util.Set |
destroys |
java.util.Set |
invalidates |
static long |
MAX_TIME |
java.util.Set |
updates |
callbackError| Constructor and Description |
|---|
CertifiableTestCacheListener(LogWriter l) |
| Modifier and Type | Method and Description |
|---|---|
void |
afterCreate2(EntryEvent event) |
void |
afterDestroy2(EntryEvent event) |
void |
afterInvalidate2(EntryEvent event) |
void |
afterUpdate2(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
|
java.util.Properties |
getConfig() |
java.util.List |
getEventHistory()
Returns a copy of the list of events collected in this listener's history.
|
void |
init(java.util.Properties props)
Initializes a user-defined object using the given properties.
|
boolean |
waitForCreated(java.lang.Object key) |
boolean |
waitForDestroyed(java.lang.Object key) |
boolean |
waitForInvalidated(java.lang.Object key) |
boolean |
waitForUpdated(java.lang.Object key) |
afterCreate, afterDestroy, afterDestroyBeforeAddEvent, afterInvalidate, afterRegionClear, afterRegionCreate, afterRegionDestroy, afterRegionDestroy2, afterRegionDestroyBeforeAddEvent, afterRegionInvalidate, afterRegionInvalidate2, afterRegionLive, afterUpdate, disableEventHistory, enableEventHistoryclose, close2, isClosed, waitForInvocation, waitForInvocation, wasInvokedclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitinitializeclosepublic final java.util.Set destroys
public final java.util.Set creates
public final java.util.Set invalidates
public final java.util.Set updates
public static final long MAX_TIME
public CertifiableTestCacheListener(LogWriter l)
public void clearState()
public java.util.List getEventHistory()
TestCacheListenergetEventHistory in class TestCacheListenerpublic void afterCreate2(EntryEvent event)
afterCreate2 in class TestCacheListenerpublic void afterDestroy2(EntryEvent event)
afterDestroy2 in class TestCacheListenerpublic void afterInvalidate2(EntryEvent event)
afterInvalidate2 in class TestCacheListenerpublic void afterUpdate2(EntryEvent event)
afterUpdate2 in class TestCacheListenerpublic boolean waitForCreated(java.lang.Object key)
public boolean waitForDestroyed(java.lang.Object key)
public boolean waitForInvalidated(java.lang.Object key)
public boolean waitForUpdated(java.lang.Object key)
public java.util.Properties getConfig()
getConfig in interface org.apache.geode.internal.cache.xmlcache.Declarable2public void init(java.util.Properties props)
DeclarableCache initialization to fail.init in interface Declarableprops - Contains the parameters declared in the declarative xml file.