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 EventDispatcher

All Known Subinterfaces:
PartitionedCacheDispatcher, PartitionedServiceDispatcher

public interface EventDispatcher

An EventDispatcher is responsible for dispatching EventDispatcher.InterceptorRegistrationEvents to EventInterceptors for processing.

Since:
Coherence 12.1.2
Author:
bo, nsa, rhan, mwj, rhl, hr 2011.03.29

Nested Class Summary
static interface EventDispatcher.InterceptorRegistrationEvent
          An InterceptorRegistrationEvent allows EventInterceptors to observe other EventInterceptors being added or removed from an EventDispatcher instance.

 

Method Summary
 void addEventInterceptor(EventInterceptor interceptor)
          Add an EventInterceptor to this dispatcher to be used to process EventDispatcher.InterceptorRegistrationEvents.
 void addEventInterceptor(java.lang.String sIdentifier, EventInterceptor interceptor)
          Add a uniquely identified EventInterceptor to this dispatcher to be used to process EventDispatcher.InterceptorRegistrationEvents.
 void addEventInterceptor(java.lang.String sIdentifier, EventInterceptor interceptor, java.util.Set setTypes, boolean fFirst)
          Add a uniquely identified EventInterceptor to this dispatcher to be used to process EventDispatcher.InterceptorRegistrationEvents.
 java.util.Set getSupportedTypes()
          Return the set of EventDispatcher.InterceptorRegistrationEvent types this EventDispatcher supports.
 void removeEventInterceptor(EventInterceptor interceptor)
          Remove an EventInterceptor from this dispatcher.
 void removeEventInterceptor(java.lang.String sIdentifier)
          Remove an EventInterceptor from this dispatcher.

 

Method Detail

addEventInterceptor

void addEventInterceptor(EventInterceptor interceptor)
Add an EventInterceptor to this dispatcher to be used to process EventDispatcher.InterceptorRegistrationEvents. The EventInterceptor will be analyzed to determine applicability to this dispatcher and an identifier will be generated if not specified via an annotation. The generated identifier is the fully qualified class name.
Parameters:
interceptor - the EventInterceptor to add

addEventInterceptor

void addEventInterceptor(java.lang.String sIdentifier,
                         EventInterceptor interceptor)
Add a uniquely identified EventInterceptor to this dispatcher to be used to process EventDispatcher.InterceptorRegistrationEvents. The EventInterceptor will be analyzed to determine applicability to this dispatcher.
Parameters:
sIdentifier - the unique name of the EventInterceptor to add
interceptor - the EventInterceptor to add

addEventInterceptor

void addEventInterceptor(java.lang.String sIdentifier,
                         EventInterceptor interceptor,
                         java.util.Set setTypes,
                         boolean fFirst)
Add a uniquely identified EventInterceptor to this dispatcher to be used to process EventDispatcher.InterceptorRegistrationEvents.
Parameters:
sIdentifier - the unique name of the EventInterceptor to add
interceptor - the EventInterceptor to add
setTypes - the EventDispatcher.InterceptorRegistrationEvent types the specified interceptor is subscribing to, or null to subscribe to all events
fFirst - true iff the EventInterceptor should be added to the head of this dispatcher's interceptor chain

removeEventInterceptor

void removeEventInterceptor(EventInterceptor interceptor)
Remove an EventInterceptor from this dispatcher.
Parameters:
interceptor - the EventInterceptor to be removed from the dispatcher based on identity reference

removeEventInterceptor

void removeEventInterceptor(java.lang.String sIdentifier)
Remove an EventInterceptor from this dispatcher.
Parameters:
sIdentifier - the unique name identifying the EventInterceptor to remove

getSupportedTypes

java.util.Set getSupportedTypes()
Return the set of EventDispatcher.InterceptorRegistrationEvent types this EventDispatcher supports.
Returns:
the set of Event types this EventDispatcher supports

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.