Interface MessageInterceptingMember<T>

Type Parameters:
T - The type that the handler was declared on.
All Superinterfaces:
MessageHandlingMember<T>

@Internal public interface MessageInterceptingMember<T> extends MessageHandlingMember<T>
Marker interface for MessageHandlingMember instances that need to be treated as interceptors, rather than regular members.
Since:
4.4.0
Author:
Allard Buijze
  • Method Details

    • priority

      default int priority()
      Description copied from interface: MessageHandlingMember
      Returns a number representing the priority of this handler over other handlers capable of processing the same message.

      In general, a handler with a higher priority will receive the message before (or instead of) handlers with a lower priority. However, the priority value may not be the only indicator that is used to determine the order of invocation. For instance, a message processor may decide to ignore the priority value if one message handler is a more specific handler of the message than another handler.

      Specified by:
      priority in interface MessageHandlingMember<T>
      Returns:
      Number indicating the priority of this handler over other handlers