Interface MessageSendingOperations<D>
- Type Parameters:
- D- the destination type
- 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:
- 4.0
- Author:
- Mark Fisher, Rossen Stoyanchev, Juergen Hoeller
- 
Method SummaryModifier and TypeMethodDescriptionvoidconvertAndSend(D destination, Object payload) Convert the given Object to serialized form, possibly using aMessageConverter, wrap it as a message and send it to the given destination.voidConvert the given Object to serialized form, possibly using aMessageConverter, wrap it as a message with the given headers and send it to the given destination.voidconvertAndSend(D destination, Object payload, @Nullable Map<String, Object> headers, @Nullable MessagePostProcessor postProcessor) Convert the given Object to serialized form, possibly using aMessageConverter, wrap it as a message with the given headers, apply the given post-processor, and send the resulting message to the given destination.voidconvertAndSend(D destination, Object payload, @Nullable MessagePostProcessor postProcessor) Convert the given Object to serialized form, possibly using aMessageConverter, wrap it as a message, apply the given post-processor, and send the resulting message to the given destination.voidconvertAndSend(Object payload) Convert the given Object to serialized form, possibly using aMessageConverter, wrap it as a message and send it to a default destination.voidconvertAndSend(Object payload, @Nullable Map<String, Object> headers, @Nullable MessagePostProcessor postProcessor) Convert the given Object to serialized form, possibly using aMessageConverter, wrap it as a message with the given headers, apply the given post-processor, and send the resulting message to the given destination.voidconvertAndSend(Object payload, Map<String, Object> headers) Convert the given Object to serialized form, possibly using aMessageConverter, wrap it as a message and send it to a default destination.voidconvertAndSend(Object payload, @Nullable MessagePostProcessor postProcessor) Convert the given Object to serialized form, possibly using aMessageConverter, wrap it as a message, apply the given post-processor, and send the resulting message to a default destination.voidSend a message to the given destination.voidSend a message to a default destination.
- 
Method Details- 
sendSend a message to a default destination.- Parameters:
- message- the message to send
- Throws:
- MessagingException
 
- 
sendSend a message to the given destination.- Parameters:
- destination- the target destination
- message- the message to send
- Throws:
- MessagingException
 
- 
convertAndSendConvert the given Object to serialized form, possibly using aMessageConverter, wrap it as a message and send it to a default destination.- Parameters:
- payload- the Object to use as payload
- Throws:
- MessagingException
 
- 
convertAndSendConvert the given Object to serialized form, possibly using aMessageConverter, 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
 
- 
convertAndSendConvert the given Object to serialized form, possibly using aMessageConverter, wrap it as a message and send it to a default destination.- Parameters:
- payload- the Object to use as payload
- headers- the headers for the message to send
- Throws:
- MessagingException
- Since:
- 7.0
 
- 
convertAndSendvoid convertAndSend(D destination, Object payload, @Nullable Map<String, Object> headers) throws MessagingExceptionConvert the given Object to serialized form, possibly using aMessageConverter, 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
 
- 
convertAndSendvoid convertAndSend(Object payload, @Nullable MessagePostProcessor postProcessor) throws MessagingException Convert the given Object to serialized form, possibly using aMessageConverter, 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
 
- 
convertAndSendvoid convertAndSend(D destination, Object payload, @Nullable MessagePostProcessor postProcessor) throws MessagingException Convert the given Object to serialized form, possibly using aMessageConverter, 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
 
- 
convertAndSendvoid convertAndSend(Object payload, @Nullable Map<String, Object> headers, @Nullable MessagePostProcessor postProcessor) throws MessagingExceptionConvert the given Object to serialized form, possibly using aMessageConverter, wrap it as a message with the given headers, apply the given post-processor, and send the resulting message to the given destination.- Parameters:
- 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
- Since:
- 7.0
 
- 
convertAndSendvoid convertAndSend(D destination, Object payload, @Nullable Map<String, Object> headers, @Nullable MessagePostProcessor postProcessor) throws MessagingExceptionConvert the given Object to serialized form, possibly using aMessageConverter, 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
 
 
-