Package io.micronaut.coherence.event
Class EventObserverSupport.UnsolicitedCommitEventHandler
java.lang.Object
io.micronaut.coherence.event.EventObserverSupport.UnsolicitedCommitEventHandler
- All Implemented Interfaces:
com.tangosol.net.events.EventDispatcherAwareInterceptor<com.tangosol.net.events.partition.UnsolicitedCommitEvent>,com.tangosol.net.events.EventInterceptor<com.tangosol.net.events.partition.UnsolicitedCommitEvent>
- Enclosing class:
- EventObserverSupport
Handler for
UnsolicitedCommitEvents.-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final EnumSet<com.tangosol.net.events.partition.UnsolicitedCommitEvent.Type>A set of event types the observer is interested in.protected final io.micronaut.coherence.event.ExecutableMethodEventObserver<com.tangosol.net.events.partition.UnsolicitedCommitEvent,?, ?> The observer method to delegate events to.protected final String -
Constructor Summary
ConstructorsConstructorDescriptionUnsolicitedCommitEventHandler(io.micronaut.coherence.event.ExecutableMethodEventObserver<com.tangosol.net.events.partition.UnsolicitedCommitEvent, ?, ?> observer) -
Method Summary
Modifier and TypeMethodDescriptionprotected EnumSet<com.tangosol.net.events.partition.UnsolicitedCommitEvent.Type>Create a final set of event types to register this interceptor for.Return the name of the scope this interceptor should be registered with.voidintroduceEventDispatcher(String identifier, com.tangosol.net.events.EventDispatcher dispatcher) protected booleanisApplicable(com.tangosol.net.events.EventDispatcher dispatcher, String scopeName) voidonEvent(com.tangosol.net.events.partition.UnsolicitedCommitEvent event) protected StringremoveScope(String serviceName) Remove the scope prefix from a specified service name.
-
Field Details
-
serviceName
-
observer
protected final io.micronaut.coherence.event.ExecutableMethodEventObserver<com.tangosol.net.events.partition.UnsolicitedCommitEvent,?, observer?> The observer method to delegate events to. -
eventTypes
A set of event types the observer is interested in.
-
-
Constructor Details
-
UnsolicitedCommitEventHandler
public UnsolicitedCommitEventHandler(io.micronaut.coherence.event.ExecutableMethodEventObserver<com.tangosol.net.events.partition.UnsolicitedCommitEvent, ?, ?> observer)
-
-
Method Details
-
isApplicable
protected boolean isApplicable(com.tangosol.net.events.EventDispatcher dispatcher, String scopeName) -
introduceEventDispatcher
public void introduceEventDispatcher(String identifier, com.tangosol.net.events.EventDispatcher dispatcher) - Specified by:
introduceEventDispatcherin interfacecom.tangosol.net.events.EventDispatcherAwareInterceptor<E extends com.tangosol.net.events.Event<T>>
-
onEvent
public void onEvent(com.tangosol.net.events.partition.UnsolicitedCommitEvent event) - Specified by:
onEventin interfacecom.tangosol.net.events.EventInterceptor<E extends com.tangosol.net.events.Event<T>>
-
eventTypes
Create a final set of event types to register this interceptor for.- Returns:
- a final set of event types to register this interceptor for
-
getScopeName
Return the name of the scope this interceptor should be registered with.- Returns:
- the name of the scope this interceptor should be registered with
-
removeScope
Remove the scope prefix from a specified service name.- Parameters:
serviceName- the service name to remove scope prefix from- Returns:
- service name with scope prefix removed
-