public class MyGatewayEventFilter1 extends java.lang.Object implements GatewayEventFilter, org.apache.geode.internal.cache.xmlcache.Declarable2
| Constructor and Description |
|---|
MyGatewayEventFilter1() |
| Modifier and Type | Method and Description |
|---|---|
void |
afterAcknowledgement(GatewayQueueEvent event)
It will be invoked once GatewaySender receives an ack from remote GatewayReceiver
This callback will always be called from the thread which is dispatching events to remote distributed systems |
boolean |
beforeEnqueue(GatewayQueueEvent event)
It will be invoked before enqueuing event into GatewaySender's queue.
|
boolean |
beforeTransmit(GatewayQueueEvent event)
It will be invoked before dispatching event to remote GatewayReceiver
This callback is asynchronous with the thread which is enqueuing the event into GatewaySender's queue. This callback will always be called from the thread which is dispatching events to remote distributed systems |
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. |
java.util.Properties |
getConfig() |
void |
init(java.util.Properties props)
Initializes a user-defined object using the given properties.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitinitializepublic 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 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.public boolean beforeEnqueue(GatewayQueueEvent event)
GatewayEventFilterbeforeEnqueue in interface GatewayEventFilterpublic boolean beforeTransmit(GatewayQueueEvent event)
GatewayEventFilterbeforeTransmit in interface GatewayEventFilterpublic void afterAcknowledgement(GatewayQueueEvent event)
GatewayEventFilterafterAcknowledgement in interface GatewayEventFilter