Interface SendMessageExtension
public interface SendMessageExtension
Implement this interface to extend the message creation and send service task with a pre and post hook.
- Author:
- Micha Kiener
-
Method Summary
Modifier and Type Method Description void
afterSendMessage(Message message)
The method is invoked just after creating and sending the message.void
beforeSendMessage(MessageBuilder messageBuilder)
This method is invoked just before the message is created and sent.
-
Method Details
-
beforeSendMessage
This method is invoked just before the message is created and sent. You can use the builder to still modify the message.- Parameters:
messageBuilder
- the initialized builder with the message properties set
-
afterSendMessage
The method is invoked just after creating and sending the message.- Parameters:
message
- the message which was sent
-