public static class CacheXml70DUnitTestHelper.MyAsyncEventListener extends java.lang.Object implements AsyncEventListener, Declarable
| Constructor and Description |
|---|
MyAsyncEventListener() |
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Called when the region containing this callback is closed or destroyed, when the cache is
closed, or when a callback is removed from a region using an
AttributesMutator. |
void |
init(java.util.Properties properties)
Initializes a user-defined object using the given properties.
|
boolean |
processEvents(java.util.List<AsyncEvent> events)
Process the list of
AsyncEvents. |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitinitializepublic boolean processEvents(java.util.List<AsyncEvent> events)
AsyncEventListenerAsyncEvents. This method will asynchronously be called when
events are queued to be processed. The size of the list will be up to batch size events where
batch size is defined in the AsyncEventQueueFactory.processEvents in interface AsyncEventListenerevents - The list of AsyncEvent to processpublic void close()
CacheCallbackAttributesMutator.
Implementations should cleanup any external resources such as database connections. Any runtime exceptions this method throws will be logged.
It is possible for this method to be called multiple times on a single callback instance, so implementations must be tolerant of this.
close in interface CacheCallbackRegionService.close(),
Region.close(),
Region.localDestroyRegion(),
Region.destroyRegion(),
AttributesMutatorpublic void init(java.util.Properties properties)
DeclarableCache initialization to fail.init in interface Declarableproperties - Contains the parameters declared in the declarative xml file.