Skip navigation links

Oracle® Fusion Middleware Java API Reference for Oracle Coherence
12c (12.1.3.0.0)

E47890-01


com.tangosol.net.events
Interface EventDispatcherAwareInterceptor

All Superinterfaces:
EventInterceptor

public interface EventDispatcherAwareInterceptor
extends EventInterceptor

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.

Since:
Coherence 12.1.2
Author:
hr 2012.09.19
See Also:
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

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(com.tangosol.net.events.EventInterceptor).

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

Skip navigation links

Oracle® Fusion Middleware Java API Reference for Oracle Coherence
12c (12.1.3.0.0)

E47890-01


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