public interface JmsMessageOperations extends MessageSendingOperations<Destination>, MessageReceivingOperations<Destination>, MessageRequestReplyOperations<Destination>
MessageSendingOperations
, MessageReceivingOperations
and MessageRequestReplyOperations
for JMS related operations that allow to specify
a destination name rather than the actual Destination
JmsTemplate
,
MessageSendingOperations
,
MessageReceivingOperations
,
MessageRequestReplyOperations
Modifier and Type | Method and Description |
---|---|
void |
convertAndSend(java.lang.String destinationName,
java.lang.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(java.lang.String destinationName,
java.lang.Object payload,
java.util.Map<java.lang.String,java.lang.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
the given destination. |
void |
convertAndSend(java.lang.String destinationName,
java.lang.Object payload,
java.util.Map<java.lang.String,java.lang.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(java.lang.String destinationName,
java.lang.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. |
<T> T |
convertSendAndReceive(java.lang.String destinationName,
java.lang.Object request,
java.lang.Class<T> targetClass)
Convert the given request Object to serialized form, possibly using a
MessageConverter , send
it as a Message to the given destination, receive the reply and convert
its body of the specified target class. |
<T> T |
convertSendAndReceive(java.lang.String destinationName,
java.lang.Object request,
java.lang.Class<T> targetClass,
MessagePostProcessor requestPostProcessor)
Convert the given request Object to serialized form, possibly using a
MessageConverter ,
apply the given post processor and send the resulting Message to the
given destination, receive the reply and convert its body of the given
target class. |
<T> T |
convertSendAndReceive(java.lang.String destinationName,
java.lang.Object request,
java.util.Map<java.lang.String,java.lang.Object> headers,
java.lang.Class<T> targetClass)
Convert the given request Object to serialized form, possibly using a
MessageConverter , send
it as a Message with the given headers, to the specified destination,
receive the reply and convert its body of the specified target class. |
<T> T |
convertSendAndReceive(java.lang.String destinationName,
java.lang.Object request,
java.util.Map<java.lang.String,java.lang.Object> headers,
java.lang.Class<T> targetClass,
MessagePostProcessor requestPostProcessor)
Convert the given request 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 specified destination, receive
the reply and convert its body of the given target class. |
Message<?> |
receive(java.lang.String destinationName)
Receive a message from the given destination.
|
<T> T |
receiveAndConvert(java.lang.String destinationName,
java.lang.Class<T> targetClass)
Receive a message from the given destination and convert its payload to the
specified target class.
|
void |
send(java.lang.String destinationName,
Message<?> message)
Send a message to the given destination.
|
Message<?> |
sendAndReceive(java.lang.String destinationName,
Message<?> requestMessage)
Send a request message and receive the reply from the given destination.
|
convertAndSend, convertAndSend, convertAndSend, convertAndSend, convertAndSend, convertAndSend, send, send
receive, receive, receiveAndConvert, receiveAndConvert
convertSendAndReceive, convertSendAndReceive, convertSendAndReceive, convertSendAndReceive, convertSendAndReceive, convertSendAndReceive, sendAndReceive, sendAndReceive
void send(java.lang.String destinationName, Message<?> message) throws MessagingException
destinationName
- the name of the target destinationmessage
- the message to sendMessagingException
void convertAndSend(java.lang.String destinationName, java.lang.Object payload) throws MessagingException
MessageConverter
,
wrap it as a message and send it to the given destination.destinationName
- the name of the target destinationpayload
- the Object to use as payloadMessagingException
void convertAndSend(java.lang.String destinationName, java.lang.Object payload, 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 given destination.destinationName
- the name of the target destinationpayload
- the Object to use as payloadheaders
- headers for the message to sendMessagingException
void convertAndSend(java.lang.String destinationName, java.lang.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.destinationName
- the name of the target destinationpayload
- the Object to use as payloadpostProcessor
- the post processor to apply to the messageMessagingException
void convertAndSend(java.lang.String destinationName, java.lang.Object 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 given destination.destinationName
- the name of the target destinationpayload
- the Object to use as payloadheaders
- headers for the message to sendpostProcessor
- the post processor to apply to the messageMessagingException
@Nullable Message<?> receive(java.lang.String destinationName) throws MessagingException
destinationName
- the name of the target destinationnull
if the message could not
be received, for example due to a timeoutMessagingException
@Nullable <T> T receiveAndConvert(java.lang.String destinationName, java.lang.Class<T> targetClass) throws MessagingException
destinationName
- the name of the target destinationtargetClass
- the target class to convert the payload tonull
if
the message could not be received, for example due to a timeoutMessagingException
@Nullable Message<?> sendAndReceive(java.lang.String destinationName, Message<?> requestMessage) throws MessagingException
destinationName
- the name of the target destinationrequestMessage
- the message to sendnull
if the message could not be received,
for example due to a timeoutMessagingException
@Nullable <T> T convertSendAndReceive(java.lang.String destinationName, java.lang.Object request, java.lang.Class<T> targetClass) throws MessagingException
MessageConverter
, send
it as a Message
to the given destination, receive the reply and convert
its body of the specified target class.destinationName
- the name of the target destinationrequest
- payload for the request message to sendtargetClass
- the target type to convert the payload of the reply tonull
if the message
could not be received, for example due to a timeoutMessagingException
@Nullable <T> T convertSendAndReceive(java.lang.String destinationName, java.lang.Object request, @Nullable java.util.Map<java.lang.String,java.lang.Object> headers, java.lang.Class<T> targetClass) throws MessagingException
MessageConverter
, send
it as a Message
with the given headers, to the specified destination,
receive the reply and convert its body of the specified target class.destinationName
- the name of the target destinationrequest
- payload for the request message to sendheaders
- headers for the request message to sendtargetClass
- the target type to convert the payload of the reply tonull
if the message
could not be received, for example due to a timeoutMessagingException
@Nullable <T> T convertSendAndReceive(java.lang.String destinationName, java.lang.Object request, java.lang.Class<T> targetClass, MessagePostProcessor requestPostProcessor) throws MessagingException
MessageConverter
,
apply the given post processor and send the resulting Message
to the
given destination, receive the reply and convert its body of the given
target class.destinationName
- the name of the target destinationrequest
- payload for the request message to sendtargetClass
- the target type to convert the payload of the reply torequestPostProcessor
- post process to apply to the request messagenull
if the message
could not be received, for example due to a timeoutMessagingException
@Nullable <T> T convertSendAndReceive(java.lang.String destinationName, java.lang.Object request, java.util.Map<java.lang.String,java.lang.Object> headers, java.lang.Class<T> targetClass, MessagePostProcessor requestPostProcessor) throws MessagingException
MessageConverter
,
wrap it as a message with the given headers, apply the given post processor
and send the resulting Message
to the specified destination, receive
the reply and convert its body of the given target class.destinationName
- the name of the target destinationrequest
- payload for the request message to sendtargetClass
- the target type to convert the payload of the reply torequestPostProcessor
- post process to apply to the request messagenull
if the message
could not be received, for example due to a timeoutMessagingException