Package com.tangosol.net.events
Interface EventDispatcher
- All Known Subinterfaces:
- CacheLifecycleEventDispatcher,- CoherenceDispatcher,- PartitionedCacheDispatcher,- PartitionedServiceDispatcher,- SessionDispatcher
public interface EventDispatcher
- Since:
- Coherence 12.1.2
- Author:
- bo, nsa, rhan, mwj, rhl, hr 2011.03.29
- 
Nested Class SummaryNested ClassesModifier and TypeInterfaceDescriptionstatic interfaceEventDispatcher.InterceptorRegistrationEvent<E extends Event<? extends Enum>>An InterceptorRegistrationEvent allowsEventInterceptors to observe other EventInterceptors being added or removed from anEventDispatcherinstance.
- 
Method SummaryModifier and TypeMethodDescriptionaddEventInterceptor(EventInterceptor<E> interceptor) Add anEventInterceptorto this dispatcher to be used to processEvents.addEventInterceptor(String sIdentifier, EventInterceptor<E> interceptor) Add a uniquely identifiedEventInterceptorto this dispatcher to be used to processEvents.addEventInterceptor(String sIdentifier, EventInterceptor<E> interceptor, Set<T> setTypes, boolean fFirst) Add a uniquely identifiedEventInterceptorto this dispatcher to be used to processEvents.Return the set ofEventtypes thisEventDispatchersupports.removeEventInterceptor(EventInterceptor<E> interceptor) Remove anEventInterceptorfrom this dispatcher.removeEventInterceptor(String sIdentifier) Remove anEventInterceptorfrom this dispatcher.
- 
Method Details- 
addEventInterceptorAdd anEventInterceptorto this dispatcher to be used to processEvents. 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.- Type Parameters:
- E- the Event the interceptor accepts
- Parameters:
- interceptor- the EventInterceptor to add
 
- 
addEventInterceptor<E extends Event<? extends Enum>> void addEventInterceptor(String sIdentifier, EventInterceptor<E> interceptor) Add a uniquely identifiedEventInterceptorto this dispatcher to be used to processEvents. The EventInterceptor will be analyzed to determine applicability to this dispatcher.- Type Parameters:
- E- the Event the interceptor accepts
- Parameters:
- sIdentifier- the unique name of the- EventInterceptorto add
- interceptor- the- EventInterceptorto add
 
- 
addEventInterceptor<T extends Enum<T>,E extends Event<T>> void addEventInterceptor(String sIdentifier, EventInterceptor<E> interceptor, Set<T> setTypes, boolean fFirst) Add a uniquely identifiedEventInterceptorto this dispatcher to be used to processEvents.- Type Parameters:
- T- the type of events dispatched by Event- EventDispatcher
- E- the Event the interceptor accepts
- Parameters:
- sIdentifier- the unique name of the- EventInterceptorto add
- interceptor- the- EventInterceptorto add
- setTypes- the- Eventtypes the specified interceptor is subscribing to, or null to subscribe to all events
- fFirst- true iff the- EventInterceptorshould be added to the head of this dispatcher's interceptor chain
 
- 
removeEventInterceptorRemove anEventInterceptorfrom this dispatcher.- Type Parameters:
- E- the Event the interceptor accepts
- Parameters:
- interceptor- the EventInterceptor to be removed from the dispatcher based on identity reference
 
- 
removeEventInterceptorRemove anEventInterceptorfrom this dispatcher.- Parameters:
- sIdentifier- the unique name identifying the EventInterceptor to remove
 
- 
getSupportedTypesReturn the set ofEventtypes thisEventDispatchersupports.- Returns:
- the set of Event types this EventDispatcher supports
 
 
-