Interface EventDispatcher.InterceptorRegistrationEvent<E extends Event<? extends Enum>>

Type Parameters:
E - the Event the interceptor being un/registered will intercept
All Superinterfaces:
Event<EventDispatcher.InterceptorRegistrationEvent.Type>
Enclosing interface:
EventDispatcher

public static interface EventDispatcher.InterceptorRegistrationEvent<E extends Event<? extends Enum>> extends Event<EventDispatcher.InterceptorRegistrationEvent.Type>
An InterceptorRegistrationEvent allows EventInterceptors to observe other EventInterceptors being added or removed from an EventDispatcher instance.
Since:
Coherence 12.1.2
See Also:
  • Method Details

    • getIdentifier

      String getIdentifier()
      Return the identifier the EventInterceptor was registered with.
      Returns:
      the identifier the EventInterceptor was registered with
    • getEventTypes

      Set<Enum> getEventTypes()
      Return the Event Types the EventInterceptor being registered will intercept. As this event is emitted under the scope of an EventDispatcher, these event types will either be the entire set or subset of supported types on the EventDispatcher.
      Returns:
      the Event Types the EventInterceptor will intercept
    • getInterceptor

      EventInterceptor<E> getInterceptor()
      Return the EventInterceptor that is either:
      1. in the process of registering
      2. has been registered
      3. has been removed
      Returns:
      the EventInterceptor being un/registered
    • setInterceptor

      void setInterceptor(EventInterceptor<E> incptr)
      Set the EventInterceptor that should be registered in place of the EventInterceptor originally being registered.
      Parameters:
      incptr - the EventInterceptor that should be registered