public interface DestinationResolvingMessageSendingOperations<D> extends MessageSendingOperations<D>
MessageSendingOperations
and adds operations for sending messages
to a destination specified as a (resolvable) String name.DestinationResolver
Modifier and Type | Method and Description |
---|---|
<T> void |
convertAndSend(java.lang.String destinationName,
T payload)
Resolve the given destination name to a destination, convert the payload Object
to serialized form, possibly using a
MessageConverter ,
wrap it as a message and send it to the resolved destination. |
<T> void |
convertAndSend(java.lang.String destinationName,
T payload,
java.util.Map<java.lang.String,java.lang.Object> headers)
Resolve the given destination name to a destination, convert the payload
Object to serialized form, possibly using a
MessageConverter ,
wrap it as a message with the given headers and send it to the resolved
destination. |
<T> void |
convertAndSend(java.lang.String destinationName,
T payload,
java.util.Map<java.lang.String,java.lang.Object> headers,
MessagePostProcessor postProcessor)
Resolve the given destination name to a destination, convert the payload
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 resolved destination. |
<T> void |
convertAndSend(java.lang.String destinationName,
T payload,
MessagePostProcessor postProcessor)
Resolve the given destination name to a destination, convert the payload
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 resolved destination. |
void |
send(java.lang.String destinationName,
Message<?> message)
Resolve the given destination name to a destination and send a message to it.
|
convertAndSend, convertAndSend, convertAndSend, convertAndSend, convertAndSend, convertAndSend, send, send
void send(java.lang.String destinationName, Message<?> message) throws MessagingException
destinationName
- the destination name to resolvemessage
- the message to sendMessagingException
<T> void convertAndSend(java.lang.String destinationName, T payload) throws MessagingException
MessageConverter
,
wrap it as a message and send it to the resolved destination.destinationName
- the destination name to resolvepayload
- the Object to use as payloadMessagingException
<T> void convertAndSend(java.lang.String destinationName, T payload, @Nullable java.util.Map<java.lang.String,java.lang.Object> headers) throws MessagingException
MessageConverter
,
wrap it as a message with the given headers and send it to the resolved
destination.destinationName
- the destination name to resolvepayload
- the Object to use as payloadheaders
- headers for the message to sendMessagingException
<T> void convertAndSend(java.lang.String destinationName, T payload, @Nullable MessagePostProcessor postProcessor) throws MessagingException
MessageConverter
,
wrap it as a message, apply the given post processor, and send the resulting
message to the resolved destination.destinationName
- the destination name to resolvepayload
- the Object to use as payloadpostProcessor
- the post processor to apply to the messageMessagingException
<T> void convertAndSend(java.lang.String destinationName, T payload, @Nullable java.util.Map<java.lang.String,java.lang.Object> headers, @Nullable MessagePostProcessor postProcessor) throws MessagingException
MessageConverter
,
wrap it as a message with the given headers, apply the given post processor,
and send the resulting message to the resolved destination.destinationName
- the destination name to resolvepayload
- the Object to use as payloadheaders
- headers for the message to sendpostProcessor
- the post processor to apply to the messageMessagingException