@Retention(value=RUNTIME) @Target(value={METHOD,ANNOTATION_TYPE}) @MessageHandler(messageType=DeadlineMessage.class) public @interface DeadlineHandler
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.MessageHandler
Modifier and Type | Optional Element and Description |
---|---|
String |
deadlineName
The name of the Deadline this handler listens to.
|
Class<?> |
payloadType
Specifies the type of message payload that can be handled by the member method.
|
Copyright © 2010–2024. All rights reserved.