Package com.oracle.coherence.cdi.events
Class EventObserverSupport.EntryProcessorEventHandler
java.lang.Object
com.oracle.coherence.cdi.events.EventObserverSupport.EventHandler<EntryProcessorEvent,EntryProcessorEvent.Type>
com.oracle.coherence.cdi.events.EventObserverSupport.EntryProcessorEventHandler
- All Implemented Interfaces:
EventDispatcherAwareInterceptor<EntryProcessorEvent>,EventInterceptor<EntryProcessorEvent>
- Enclosing class:
EventObserverSupport
public static class EventObserverSupport.EntryProcessorEventHandler
extends EventObserverSupport.EventHandler<EntryProcessorEvent,EntryProcessorEvent.Type>
Handler for
EntryProcessorEvents.-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final Stringprotected final Stringprotected final StringFields inherited from class com.oracle.coherence.cdi.events.EventObserverSupport.EventHandler
m_observer, m_setTypes -
Constructor Summary
ConstructorsConstructorDescription -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanisApplicable(EventDispatcher dispatcher, String sScopeName) Returntrueif this interceptor should be registered with a specified dispatcher.protected booleanshouldFire(EntryProcessorEvent event) Returntrueif the event should fire.Methods inherited from class com.oracle.coherence.cdi.events.EventObserverSupport.EventHandler
addType, eventTypes, getEventScope, getId, getScopeName, introduceEventDispatcher, onEvent, removeScope
-
Field Details
-
m_cacheName
-
m_serviceName
-
m_sessionName
-
-
Constructor Details
-
EntryProcessorEventHandler
-
-
Method Details
-
shouldFire
Description copied from class:EventObserverSupport.EventHandlerReturntrueif the event should fire.This allows sub-classes to provide additional filtering logic and prevent the observer method notification from happening even after the Coherence server-side event is fired.
- Overrides:
shouldFirein classEventObserverSupport.EventHandler<EntryProcessorEvent,EntryProcessorEvent.Type> - Parameters:
event- the event to check- Returns:
trueif the event should fire
-
isApplicable
Description copied from class:EventObserverSupport.EventHandlerReturntrueif this interceptor should be registered with a specified dispatcher.- Specified by:
isApplicablein classEventObserverSupport.EventHandler<E extends Event<T>,T extends Enum<T>> - Parameters:
dispatcher- a dispatcher to register this interceptor withsScopeName- a scope name the observer is interested in, ornullfor all scopes- Returns:
trueif this interceptor should be registered with a specified dispatcher;falseotherwise
-