public static class EventObserverSupport.UnsolicitedCommitEventHandler
extends java.lang.Object
UnsolicitedCommitEvents.| Modifier and Type | Field and Description |
|---|---|
protected java.util.EnumSet<T> |
eventTypes
A set of event types the observer is interested in.
|
protected io.micronaut.coherence.event.ExecutableMethodEventObserver<E,?,?> |
observer
The observer method to delegate events to.
|
protected java.lang.String |
serviceName |
| Constructor and Description |
|---|
UnsolicitedCommitEventHandler(io.micronaut.coherence.event.ExecutableMethodEventObserver<com.tangosol.net.events.partition.UnsolicitedCommitEvent,?,?> observer) |
| Modifier and Type | Method and Description |
|---|---|
protected java.util.EnumSet<T> |
eventTypes()
Create a final set of event types to register this interceptor for.
|
java.lang.String |
getScopeName()
Return the name of the scope this interceptor should be registered with.
|
void |
introduceEventDispatcher(java.lang.String identifier,
com.tangosol.net.events.EventDispatcher dispatcher) |
protected boolean |
isApplicable(com.tangosol.net.events.EventDispatcher dispatcher,
java.lang.String scopeName)
Return
true if this interceptor should be registered with
a specified dispatcher. |
void |
onEvent(E event) |
protected java.lang.String |
removeScope(java.lang.String serviceName)
Remove the scope prefix from a specified service name.
|
protected final java.lang.String serviceName
protected final io.micronaut.coherence.event.ExecutableMethodEventObserver<E extends com.tangosol.net.events.Event<T>,?,?> observer
protected final java.util.EnumSet<T extends java.lang.Enum<T>> eventTypes
public UnsolicitedCommitEventHandler(io.micronaut.coherence.event.ExecutableMethodEventObserver<com.tangosol.net.events.partition.UnsolicitedCommitEvent,?,?> observer)
protected boolean isApplicable(com.tangosol.net.events.EventDispatcher dispatcher,
java.lang.String scopeName)
true if this interceptor should be registered with
a specified dispatcher.dispatcher - a dispatcher to register this interceptor withscopeName - a scope name the observer is interested in,
or null for all scopestrue if this interceptor should be registered with
a specified dispatcher; false otherwisepublic void introduceEventDispatcher(java.lang.String identifier,
com.tangosol.net.events.EventDispatcher dispatcher)
introduceEventDispatcher in interface com.tangosol.net.events.EventDispatcherAwareInterceptor<E extends com.tangosol.net.events.Event<T>>public void onEvent(E event)
onEvent in interface com.tangosol.net.events.EventInterceptor<E extends com.tangosol.net.events.Event<T>>protected java.util.EnumSet<T> eventTypes()
public java.lang.String getScopeName()
protected java.lang.String removeScope(java.lang.String serviceName)
serviceName - the service name to remove scope prefix from