MessageRequestReplyOperations and adds operations for sending and
receiving messages to and from a destination specified as a (resolvable) String name.
DestinationResolver
| Modifier and Type | Method and Description |
|---|---|
| public <T> T | Returns: the converted payload of the reply message, possiblynull if
the message could not be received, for example due to a timeoutthe name of the target destination destinationName, Object the payload for the request message to send request, Class<T> the target class to convert the payload of the reply to targetClass)Redeclares org. org.,
wrap it as a message and send it to the resolved destination, receive a reply
and convert its body to the specified target class.
|
| public <T> T | Returns: the converted payload of the reply message, possiblynull if
the message could not be received, for example due to a timeoutthe name of the target destination destinationName, Object the payload for the request message to send request, Map<String, Object> the headers for the request message to send headers, Class<T> the target class to convert the payload of the reply to targetClass)Redeclares org. org.,
wrap it as a message with the given headers and send it to the resolved destination,
receive a reply and convert its body to the specified target class.
|
| public <T> T | Returns: the converted payload of the reply message, possiblynull if
the message could not be received, for example due to a timeoutthe name of the target destination destinationName, Object the payload for the request message to send request, Class<T> the target class to convert the payload of the reply to targetClass, MessagePostProcessor post process for the request message requestPostProcessor)Redeclares org. org.,
wrap it as a message, apply the given post process, and send the resulting
message to the resolved destination, then receive a reply and convert its
body to the specified target class.
|
| public <T> T | Returns: the converted payload of the reply message, possiblynull if
the message could not be received, for example due to a timeoutthe name of the target destination destinationName, Object the payload for the request message to send request, Map<String, Object> the headers for the request message to send headers, Class<T> the target class to convert the payload of the reply to targetClass, MessagePostProcessor post process for the request message requestPostProcessor)Redeclares org. org.,
wrap it as a message with the given headers, apply the given post process,
and send the resulting message to the resolved destination, then receive
a reply and convert its body to the specified target class.
|
| public Message | Returns: the received message, possiblynull if the message could not
be received, for example due to a timeoutthe name of the target destination destinationName, Message<?> the message to send requestMessage)Redeclares org. |
| convertSendAndReceive | back to summary |
|---|---|
| public <T> T convertSendAndReceive(String destinationName, Object request, Class<T> targetClass) throws MessagingException Redeclares org. Resolve the given destination name, convert the payload request Object
to serialized form, possibly using a
| |
| convertSendAndReceive | back to summary |
|---|---|
| public <T> T convertSendAndReceive(String destinationName, Object request, Map<String, Object> headers, Class<T> targetClass) throws MessagingException Redeclares org. Resolve the given destination name, convert the payload request Object
to serialized form, possibly using a
| |
| convertSendAndReceive | back to summary |
|---|---|
| public <T> T convertSendAndReceive(String destinationName, Object request, Class<T> targetClass, MessagePostProcessor requestPostProcessor) throws MessagingException Redeclares org. Resolve the given destination name, convert the payload request Object
to serialized form, possibly using a
| |
| convertSendAndReceive | back to summary |
|---|---|
| public <T> T convertSendAndReceive(String destinationName, Object request, Map<String, Object> headers, Class<T> targetClass, MessagePostProcessor requestPostProcessor) throws MessagingException Redeclares org. Resolve the given destination name, convert the payload request Object
to serialized form, possibly using a
| |
| sendAndReceive | back to summary |
|---|---|
| public Message Redeclares org. Resolve the given destination name to a destination and send the given message, receive a reply and return it. | |