Class AbstractFederatedInterceptor<K,V>
java.lang.Object
com.tangosol.coherence.federation.events.AbstractFederatedInterceptor<K,V>
- All Implemented Interfaces:
EventDispatcherAwareInterceptor<FederatedChangeEvent>,EventInterceptor<FederatedChangeEvent>
public abstract class AbstractFederatedInterceptor<K,V>
extends Object
implements EventDispatcherAwareInterceptor<FederatedChangeEvent>
An abstract implementation of an
EventInterceptor
for FederatedChangeEvents applicable to remote participants.- Author:
- cl 2014.06.09
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract ChangeRecordUpdater<K, V> Return aChangeRecordUpdaterwhich will be called to update eachChangeRecord.voidintroduceEventDispatcher(String sIdentifier, EventDispatcher dispatcher) Introduce and possibly bind thisEventInterceptorto the specifiedEventDispatcher.voidonEvent(FederatedChangeEvent event) Perform necessary processing of the specifiedEvent.
-
Constructor Details
-
AbstractFederatedInterceptor
public AbstractFederatedInterceptor()
-
-
Method Details
-
onEvent
Perform necessary processing of the specifiedEvent.- Specified by:
onEventin interfaceEventInterceptor<K>- Parameters:
event- the Event to be processed- See Also:
-
introduceEventDispatcher
Introduce and possibly bind thisEventInterceptorto the specifiedEventDispatcher.Note that EventInterceptors are responsible for determining whether they should be registered with an EventDispatcher by calling
EventDispatcher.addEventInterceptor(com.tangosol.net.events.EventInterceptor<E>).- Specified by:
introduceEventDispatcherin interfaceEventDispatcherAwareInterceptor<K>- Parameters:
sIdentifier- the unique name identifying this interceptordispatcher- the dispatcher being introduced
-
getChangeRecordUpdater
Return aChangeRecordUpdaterwhich will be called to update eachChangeRecord.- Returns:
- a ChangeRecordUpdater
-