Interface MessageInterceptingMember<T>
- Type Parameters:
T- The type that the handler was declared on.
- All Superinterfaces:
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 Summary
Modifier and TypeMethodDescriptiondefault intpriority()Returns a number representing the priority of this handler over other handlers capable of processing the same message.Methods inherited from interface org.axonframework.messaging.core.annotation.MessageHandlingMember
attribute, canHandle, canHandleMessageType, canHandleType, declaringClass, handle, handleSync, payloadType, signature, unwrap
-
Method Details
-
priority
default int priority()Description copied from interface:MessageHandlingMemberReturns 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:
priorityin interfaceMessageHandlingMember<T>- Returns:
- Number indicating the priority of this handler over other handlers
-