Annotation Interface DeadlineHandler
@Retention(RUNTIME)
@Target({METHOD,ANNOTATION_TYPE})
@MessageHandler(messageType=DeadlineMessage.class)
public @interface DeadlineHandler
Annotation used to mark handlers which are capable of handling a
DeadlineMessage. It is a specialization of
MessageHandler were the messageType is set to DeadlineMessage. Hence, any parameter injections
which works for event handlers work for deadline handlers as well.- Since:
- 3.3
- Author:
- Milan Savic, Steven van Beelen
- See Also:
-
Optional Element Summary
Optional ElementsModifier and TypeOptional ElementDescriptionThe name of the Deadline this handler listens to.Class<?> Specifies the type of message payload that can be handled by the member method.
-
Element Details
-
deadlineName
String deadlineNameThe name of the Deadline this handler listens to. Defaults to the fully qualified class name of the payload type (i.e. first parameter).- Returns:
- The name of the deadline as a
String
- Default:
""
-
payloadType
Class<?> payloadTypeSpecifies the type of message payload that can be handled by the member method. The payload of the message should be assignable to this type. Defaults to anyObject.- Default:
java.lang.Object.class
-