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
ServiceLoaderand automatically registered as interceptors with eachCoherenceinstance.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default voidintroduceEventDispatcher(String sIdentifier, EventDispatcher dispatcher)Introduce and possibly bind thisEventInterceptorto the specifiedEventDispatcher.voidonEvent(CoherenceLifecycleEvent event)Perform necessary processing of the specifiedEvent.
-
-
-
Method Detail
-
onEvent
void onEvent(CoherenceLifecycleEvent event)
Description copied from interface:EventInterceptorPerform necessary processing of the specifiedEvent.- Specified by:
onEventin 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:EventDispatcherAwareInterceptorIntroduce and possibly bind thisEventInterceptorto 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:
introduceEventDispatcherin interfaceEventDispatcherAwareInterceptor<CoherenceLifecycleEvent>- Parameters:
sIdentifier- the unique name identifying this interceptordispatcher- the dispatcher being introduced
-
-