Skip navigation links

Oracle® Coherence Java API Reference
Release 3.7.1.0

E22843-01


com.tangosol.net.events
Interface EventInterceptor

All Known Implementing Classes:
AbstractEventInterceptor

public interface EventInterceptor

An EventInterceptor provides an implementation that is capable of intercepting and processing Events.

While it's possible for EventInterceptor instances to be reused, they should be immutable or thread-safe such that an interceptor could be dispatched by multiple threads concurrently.

Since:
Coherence 3.7.1
Author:
nsa, rhan, bko, mwj, rhl 2011.03.29

Method Summary
 void introduceEventDispatcher(java.lang.String sIdentifier, EventDispatcher dispatcher)
          Introduce and possibly bind this EventInterceptor to the specified EventDispatcher.
 void onEvent(Event event)
          Perform necessary processing of the specified Event.

 

Method Detail

onEvent

void onEvent(Event event)
Perform necessary processing of the specified Event.
Parameters:
event - the Event to be processed

introduceEventDispatcher

void introduceEventDispatcher(java.lang.String sIdentifier,
                              EventDispatcher dispatcher)
Introduce and possibly bind this EventInterceptor to the specified EventDispatcher.

Note that EventInterceptors are responsible for determining whether they should be registered with an EventDispatcher by calling EventDispatcher.addEventInterceptor(java.lang.String, com.tangosol.net.events.EventInterceptor, java.util.Set, boolean).

Parameters:
sIdentifier - the unique name identifying this interceptor
dispatcher - the dispatcher being introduced

Skip navigation links

Oracle® Coherence Java API Reference
Release 3.7.1.0

E22843-01


Copyright © 2000, 2011, Oracle and/or its affiliates. All rights reserved.