Package com.oracle.coherence.cdi.events
Class EventObserverSupport.EntryProcessorEventHandler
- java.lang.Object
-
- com.oracle.coherence.cdi.events.EventObserverSupport.EventHandler<E,T>
-
- 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<E,T>
Handler forEntryProcessorEvent
s.
-
-
Field Summary
Fields Modifier and Type Field Description protected String
m_cacheName
protected String
m_serviceName
protected String
m_sessionName
-
Fields inherited from class com.oracle.coherence.cdi.events.EventObserverSupport.EventHandler
m_observer, m_setTypes
-
-
Constructor Summary
Constructors Constructor Description EntryProcessorEventHandler(EventObserverSupport.EventObserver<EntryProcessorEvent> observer)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected boolean
isApplicable(EventDispatcher dispatcher, String sScopeName)
Returntrue
if this interceptor should be registered with a specified dispatcher.protected boolean
shouldFire(EntryProcessorEvent event)
Returntrue
if the event should fire.-
Methods inherited from class com.oracle.coherence.cdi.events.EventObserverSupport.EventHandler
addType, eventTypes, getEventScope, getId, getScopeName, introduceEventDispatcher, onEvent, removeScope
-
-
-
-
Constructor Detail
-
EntryProcessorEventHandler
public EntryProcessorEventHandler(EventObserverSupport.EventObserver<EntryProcessorEvent> observer)
-
-
Method Detail
-
shouldFire
protected boolean shouldFire(EntryProcessorEvent event)
Description copied from class:EventObserverSupport.EventHandler
Returntrue
if 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:
shouldFire
in classEventObserverSupport.EventHandler<EntryProcessorEvent,EntryProcessorEvent.Type>
- Parameters:
event
- the event to check- Returns:
true
if the event should fire
-
isApplicable
protected boolean isApplicable(EventDispatcher dispatcher, String sScopeName)
Description copied from class:EventObserverSupport.EventHandler
Returntrue
if this interceptor should be registered with a specified dispatcher.- Specified by:
isApplicable
in 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, ornull
for all scopes- Returns:
true
if this interceptor should be registered with a specified dispatcher;false
otherwise
-
-