public abstract class AbstractFederatedInterceptor<K,V> extends Object implements EventDispatcherAwareInterceptor<FederatedChangeEvent>
EventInterceptor
for FederatedChangeEvent
s applicable to remote participants.Constructor and Description |
---|
AbstractFederatedInterceptor() |
Modifier and Type | Method and Description |
---|---|
abstract ChangeRecordUpdater<K,V> |
getChangeRecordUpdater()
Return a
ChangeRecordUpdater which will be called to update each ChangeRecord . |
void |
introduceEventDispatcher(String sIdentifier, EventDispatcher dispatcher)
Introduce and possibly bind this
EventInterceptor to the specified EventDispatcher . |
void |
onEvent(FederatedChangeEvent event)
Perform necessary processing of the specified
Event . |
public void onEvent(FederatedChangeEvent event)
Event
.onEvent
in interface EventInterceptor<FederatedChangeEvent>
event
- the Event to be processedEvent.nextInterceptor()
public void introduceEventDispatcher(String sIdentifier, EventDispatcher dispatcher)
EventInterceptor
to the specified EventDispatcher
.
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>)
.
introduceEventDispatcher
in interface EventDispatcherAwareInterceptor<FederatedChangeEvent>
sIdentifier
- the unique name identifying this interceptordispatcher
- the dispatcher being introducedpublic abstract ChangeRecordUpdater<K,V> getChangeRecordUpdater()
ChangeRecordUpdater
which will be called to update each ChangeRecord
.