All Known Subinterfaces:
DestinationResolvingMessageSendingOperations
<D>
,
JmsMessageOperations
,
SimpMessageSendingOperations
All Known Implementing Classes:
AbstractDestinationResolvingMessagingTemplate
,
AbstractMessageReceivingTemplate
,
AbstractMessageSendingTemplate
,
AbstractMessagingTemplate
,
GenericMessagingTemplate
,
JmsMessagingTemplate
,
SimpMessagingTemplate
public interface
MessageSendingOperations<D>
Operations for sending messages to a destination.
Since:
Author:
Mark Fisher, Rossen Stoyanchev
Convert the given Object to serialized form, possibly using a
MessageConverter
,
wrap it as a message and send it to the given destination.
Convert the given Object to serialized form, possibly using a
MessageConverter
,
wrap it as a message with the given headers and send it to
the given destination.
Convert the given Object to serialized form, possibly using a
MessageConverter
,
wrap it as a message with the given headers, apply the given post processor,
and send the resulting message to the given destination.
Convert the given Object to serialized form, possibly using a
MessageConverter
,
wrap it as a message, apply the given post processor, and send
the resulting message to the given destination.
Convert the given Object to serialized form, possibly using a
MessageConverter
,
wrap it as a message and send it to a default destination.
Convert the given Object to serialized form, possibly using a
MessageConverter
,
wrap it as a message, apply the given post processor, and send
the resulting message to a default destination.
Send a message to the given destination.
Send a message to a default destination.
Send a message to a default destination.
Parameters:
message
- the message to send
Throws:
MessagingException
Convert the given Object to serialized form, possibly using a
MessageConverter
,
wrap it as a message and send it to a default destination.
Parameters:
payload
- the Object to use as payload
Throws:
MessagingException
Object
payload)
throws
MessagingException
Convert the given Object to serialized form, possibly using a
MessageConverter
,
wrap it as a message and send it to the given destination.
Parameters:
destination
- the target destination
payload
- the Object to use as payload
Throws:
MessagingException
Map
<
String
,
Object
> headers)
throws
MessagingException
Convert the given Object to serialized form, possibly using a
MessageConverter
,
wrap it as a message with the given headers and send it to
the given destination.
Parameters:
destination
- the target destination
payload
- the Object to use as payload
headers
- the headers for the message to send
Throws:
MessagingException
MessagePostProcessor
postProcessor)
throws
MessagingException
Convert the given Object to serialized form, possibly using a
MessageConverter
,
wrap it as a message, apply the given post processor, and send
the resulting message to a default destination.
Parameters:
payload
- the Object to use as payload
postProcessor
- the post processor to apply to the message
Throws:
MessagingException
Convert the given Object to serialized form, possibly using a
MessageConverter
,
wrap it as a message, apply the given post processor, and send
the resulting message to the given destination.
Parameters:
destination
- the target destination
payload
- the Object to use as payload
postProcessor
- the post processor to apply to the message
Throws:
MessagingException
MessagePostProcessor
postProcessor)
throws
MessagingException
Convert the given Object to serialized form, possibly using a
MessageConverter
,
wrap it as a message with the given headers, apply the given post processor,
and send the resulting message to the given destination.
Parameters:
destination
- the target destination
payload
- the Object to use as payload
headers
- the headers for the message to send
postProcessor
- the post processor to apply to the message
Throws:
MessagingException