D - the type of destination to send messages topublic interface MessageSendingOperations<D>
| Modifier and Type | Method and Description |
|---|---|
void |
convertAndSend(D destination,
Object payload)
Convert the given Object to serialized form, possibly using a
MessageConverter,
wrap it as a message and send it to the given destination. |
void |
convertAndSend(D destination,
Object payload,
Map<String,Object> headers)
Convert the given Object to serialized form, possibly using a
MessageConverter,
wrap it as a message with the given headers and send it to
a default destination. |
void |
convertAndSend(D destination,
Object payload,
Map<String,Object> headers,
MessagePostProcessor postProcessor)
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. |
void |
convertAndSend(D destination,
Object payload,
MessagePostProcessor postProcessor)
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. |
void |
convertAndSend(Object payload)
Convert the given Object to serialized form, possibly using a
MessageConverter,
wrap it as a message and send it to a default destination. |
void |
convertAndSend(Object payload,
MessagePostProcessor postProcessor)
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. |
void |
send(D destination,
Message<?> message)
Send a message to the given destination.
|
void |
send(Message<?> message)
Send a message to a default destination.
|
void send(Message<?> message) throws MessagingException
message - the message to sendMessagingExceptionvoid send(D destination, Message<?> message) throws MessagingException
destination - the target destinationmessage - the message to sendMessagingExceptionvoid convertAndSend(Object payload) throws MessagingException
MessageConverter,
wrap it as a message and send it to a default destination.payload - the Object to use as payloadMessagingExceptionvoid convertAndSend(D destination, Object payload) throws MessagingException
MessageConverter,
wrap it as a message and send it to the given destination.destination - the target destinationpayload - the Object to use as payloadMessagingExceptionvoid convertAndSend(D destination, Object payload, Map<String,Object> headers) throws MessagingException
MessageConverter,
wrap it as a message with the given headers and send it to
a default destination.destination - the target destinationpayload - the Object to use as payloadheaders - headers for the message to sendMessagingExceptionvoid convertAndSend(Object payload, MessagePostProcessor postProcessor) throws MessagingException
MessageConverter,
wrap it as a message, apply the given post processor, and send
the resulting message to a default destination.payload - the Object to use as payloadpostProcessor - the post processor to apply to the messageMessagingExceptionvoid convertAndSend(D destination, Object payload, MessagePostProcessor postProcessor) throws MessagingException
MessageConverter,
wrap it as a message, apply the given post processor, and send
the resulting message to the given destination.destination - the target destinationpayload - the Object to use as payloadpostProcessor - the post processor to apply to the messageMessagingExceptionvoid convertAndSend(D destination, Object payload, Map<String,Object> headers, 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 given destination.destination - the target destinationpayload - the Object to use as payloadheaders - headers for the message to sendpostProcessor - the post processor to apply to the messageMessagingException