AbstractMessageReceivingTemplate that adds support for
request-reply style operations as defined by MessageRequestReplyOperations.
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public <T> T | convertSendAndReceive(Object
payload for the request message to send request, Class<T> the target type to convert the payload of the reply to targetClass)Implements org. org., send
it as a Message to a default destination, receive the reply and convert
its body of the specified target class.
|
| public <T> T | convertSendAndReceive(D
the target destination destination, Object payload for the request message to send request, Class<T> the target type to convert the payload of the reply to targetClass)Implements org. org., send
it as a Message to the given destination, receive the reply and convert
its body of the specified target class.
|
| public <T> T | convertSendAndReceive(D
the target destination destination, Object payload for the request message to send request, Map<String, Object> the headers for the request message to send headers, Class<T> the target type to convert the payload of the reply to targetClass)Implements org. org., 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.
|
| public <T> T | convertSendAndReceive(Object
payload for the request message to send request, Class<T> the target type to convert the payload of the reply to targetClass, MessagePostProcessor post process to apply to the request message postProcessor)Implements org. org.,
apply the given post processor and send the resulting Message to a
default destination, receive the reply and convert its body of the given
target class.
|
| public <T> T | convertSendAndReceive(D
the target destination destination, Object payload for the request message to send request, Class<T> the target type to convert the payload of the reply to targetClass, MessagePostProcessor post process to apply to the request message postProcessor)Implements org. org.,
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.
|
| public <T> T | convertSendAndReceive(D
the target destination destination, Object payload for the request message to send request, Map<String, Object> headers, Class<T> the target type to convert the payload of the reply to targetClass, MessagePostProcessor post process to apply to the request message postProcessor)Implements org. org.,
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.
|
| protected abstract Message | |
| public Message | sendAndReceive(Message<?>
the message to send requestMessage)Implements org. |
| public Message | sendAndReceive(D
the target destination destination, Message<?> the message to send requestMessage)Implements org. |
| AbstractMessagingTemplate | back to summary |
|---|---|
| public AbstractMessagingTemplate() | |
| convertSendAndReceive | back to summary |
|---|---|
| public <T> T convertSendAndReceive(Object request, Class<T> targetClass) Implements org. Doc from org. Convert the given request Object to serialized form, possibly using a
| |
| convertSendAndReceive | back to summary |
|---|---|
| public <T> T convertSendAndReceive(D destination, Object request, Class<T> targetClass) Implements org. Doc from org. Convert the given request Object to serialized form, possibly using a
| |
| convertSendAndReceive | back to summary |
|---|---|
| public <T> T convertSendAndReceive(D destination, Object request, Map<String, Object> headers, Class<T> targetClass) Implements org. Doc from org. Convert the given request Object to serialized form, possibly using a
| |
| convertSendAndReceive | back to summary |
|---|---|
| public <T> T convertSendAndReceive(Object request, Class<T> targetClass, MessagePostProcessor postProcessor) Implements org. Doc from org. Convert the given request Object to serialized form, possibly using a
| |
| convertSendAndReceive | back to summary |
|---|---|
| public <T> T convertSendAndReceive(D destination, Object request, Class<T> targetClass, MessagePostProcessor postProcessor) Implements org. Doc from org. Convert the given request Object to serialized form, possibly using a
| |
| convertSendAndReceive | back to summary |
|---|---|
| public <T> T convertSendAndReceive(D destination, Object request, Map<String, Object> headers, Class<T> targetClass, MessagePostProcessor postProcessor) Implements org. Doc from org. Convert the given request Object to serialized form, possibly using a
| |
| doSendAndReceive | back to summary |
|---|---|
protected abstract Message
| |
| sendAndReceive | back to summary |
|---|---|
| public Message Implements org. Doc from org. Send a request message and receive the reply from a default destination. | |
| sendAndReceive | back to summary |
|---|---|
| public Message Implements org. Doc from org. Send a request message and receive the reply from the given destination. | |