|
Oracle® Coherence Java API Reference Release 12.1.2.0.3 E26043-02 |
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface EventDispatcherAwareInterceptor
EventDispatcherAwareInterceptor is an EventInterceptor
implementation that takes responsibility for registering itself with the EventDispatcher
. This allows the EventInterceptor to determine applicability to the dispatcher in addition to choosing the appropriate registration call exposed by the EventDispatcher. The following shows an example of a introduceEventDispatcher
implementation that explicitly states its interest in being the first interceptor called and to be notified on EntryEvent.Type.INSERTING events exclusively:
public void introduceEventDispatcher(String sIdentifier, EventDispatcher dispatcher)
{
dispatcher.addEventInterceptor(sIdentifier, this,
new HashSet(Arrays.asList(EntryEvent.Type.INSERTING)), true);
}
This interface accommodates for those EventInterceptor implementations that require a custom registration mechanism outside of the provided mechanisms; annotation and/or generics.
EventInterceptor
Method Summary | |
---|---|
void |
introduceEventDispatcher(java.lang.String sIdentifier, EventDispatcher dispatcher) Introduce and possibly bind this EventInterceptor to the specified EventDispatcher . |
Methods inherited from interface com.tangosol.net.events.EventInterceptor |
---|
onEvent |
Method Detail |
---|
void introduceEventDispatcher(java.lang.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)
.
sIdentifier
- the unique name identifying this interceptordispatcher
- the dispatcher being introduced
|
Oracle® Coherence Java API Reference Release 12.1.2.0.3 E26043-02 |
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |