GemFire 7.0.1

com.gemstone.gemfire.cache.wan
Interface GatewayEventFilter

All Superinterfaces:
CacheCallback

public interface GatewayEventFilter
extends CacheCallback

Callback for users to filter out events before dispatching to remote distributed system

Since:
7.0

Method Summary
 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.
 
Methods inherited from interface com.gemstone.gemfire.cache.CacheCallback
close
 

Method Detail

beforeEnqueue

boolean beforeEnqueue(GatewayQueueEvent event)
It will be invoked before enqueuing event into GatewaySender's queue.
This callback is synchronous with the thread which is enqueuing the event into GatewaySender's queue.

Parameters:
event -
Returns:
true if event should be enqueued otherwise return false.

beforeTransmit

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

Parameters:
event -
Returns:
true if event should be dispatched otherwise return false.

afterAcknowledgement

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

Parameters:
event -

GemFire 7.0.1

Copyright © 1997-2013 VMware, Inc. All rights reserved.