MessageSendingOperations

Operations for sending messages to a destination.

@author Mark Fisher @author Rossen Stoyanchev @since 4.0 @param (T) the destination type

Members

Functions

convertAndSend
void convertAndSend(Object payload)

Convert the given Object to serialized form, possibly using a {@link hunt.stomp.converter.MessageConverter}, wrap it as a message and send it to a default destination. @param payload the Object to use as payload

convertAndSend
void convertAndSend(T destination, Object payload)

Convert the given Object to serialized form, possibly using a {@link hunt.stomp.converter.MessageConverter}, wrap it as a message and send it to the given destination. @param destination the target destination @param payload the Object to use as payload

convertAndSend
void convertAndSend(T destination, Object payload, Map!(string, Object) headers)

Convert the given Object to serialized form, possibly using a {@link hunt.stomp.converter.MessageConverter}, wrap it as a message with the given headers and send it to the given destination. @param destination the target destination @param payload the Object to use as payload @param headers headers for the message to send

convertAndSend
void convertAndSend(Object payload, MessagePostProcessor postProcessor)

Convert the given Object to serialized form, possibly using a {@link hunt.stomp.converter.MessageConverter}, wrap it as a message, apply the given post processor, and send the resulting message to a default destination. @param payload the Object to use as payload @param postProcessor the post processor to apply to the message

convertAndSend
void convertAndSend(T destination, Object payload, MessagePostProcessor postProcessor)

Convert the given Object to serialized form, possibly using a {@link hunt.stomp.converter.MessageConverter}, wrap it as a message, apply the given post processor, and send the resulting message to the given destination. @param destination the target destination @param payload the Object to use as payload @param postProcessor the post processor to apply to the message

convertAndSend
void convertAndSend(T destination, Object payload, Map!(string, Object) headers, MessagePostProcessor postProcessor)

Convert the given Object to serialized form, possibly using a {@link hunt.stomp.converter.MessageConverter}, wrap it as a message with the given headers, apply the given post processor, and send the resulting message to the given destination. @param destination the target destination @param payload the Object to use as payload @param headers headers for the message to send @param postProcessor the post processor to apply to the message

send
void send(MessageBase message)

Send a message to a default destination. @param message the message to send

send
void send(T destination, MessageBase message)

Send a message to the given destination. @param destination the target destination @param message the message to send

Meta