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 of
CoherenceLifecycleEvents
.
Implementations of this interface properly registered as services will be discovered
using the ServiceLoader
and automatically registered as interceptors with
each Coherence
instance.
-
Method Summary
Modifier and TypeMethodDescriptiondefault 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 Details
-
onEvent
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:
-
introduceEventDispatcher
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
-