Package com.tangosol.net
Interface Coherence.LifecycleListener
-
- All Superinterfaces:
EventDispatcherAwareInterceptor<CoherenceLifecycleEvent>
,EventInterceptor<CoherenceLifecycleEvent>
- Enclosing class:
- Coherence
public static interface Coherence.LifecycleListener extends EventDispatcherAwareInterceptor<CoherenceLifecycleEvent>
An interface implemented by listeners ofCoherenceLifecycleEvents
.Implementations of this interface properly registered as services will be discovered using the
ServiceLoader
and automatically registered as interceptors with eachCoherence
instance.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default void
introduceEventDispatcher(String sIdentifier, EventDispatcher dispatcher)
Introduce and possibly bind thisEventInterceptor
to the specifiedEventDispatcher
.void
onEvent(CoherenceLifecycleEvent event)
Perform necessary processing of the specifiedEvent
.
-
-
-
Method Detail
-
onEvent
void onEvent(CoherenceLifecycleEvent event)
Description copied from interface:EventInterceptor
Perform necessary processing of the specifiedEvent
.- Specified by:
onEvent
in interfaceEventInterceptor<CoherenceLifecycleEvent>
- Parameters:
event
- the Event to be processed- See Also:
Event.nextInterceptor()
-
introduceEventDispatcher
default void introduceEventDispatcher(String sIdentifier, EventDispatcher dispatcher)
Description copied from interface:EventDispatcherAwareInterceptor
Introduce and possibly bind thisEventInterceptor
to the specifiedEventDispatcher
.Note that EventInterceptors are responsible for determining whether they should be registered with an EventDispatcher by calling
EventDispatcher.addEventInterceptor(com.tangosol.net.events.EventInterceptor<E>)
.- Specified by:
introduceEventDispatcher
in interfaceEventDispatcherAwareInterceptor<CoherenceLifecycleEvent>
- Parameters:
sIdentifier
- the unique name identifying this interceptordispatcher
- the dispatcher being introduced
-
-