AbstractMessageSendingTemplate that adds support for
receive style operations as defined by MessageReceivingOperations.
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| protected <T> T | |
| protected abstract Message | Returns: the received message, possiblynull if the message could not
be received, for example due to a timeoutthe target destination destination)Actually receive a message from the given destination. |
| public Message | receive()
Implements org. |
| public Message | receive(D
the target destination destination)Implements org. |
| public <T> T | receiveAndConvert(Class<T>
the target class to convert the payload to targetClass)Implements org. |
| public <T> T | receiveAndConvert(D
the target destination destination, Class<T> the target class to convert the payload to targetClass)Implements org. |
| AbstractMessageReceivingTemplate | back to summary |
|---|---|
| public AbstractMessageReceivingTemplate() | |
| doConvert | back to summary |
|---|---|
| protected <T> T doConvert(Message<?> message, Class<T> targetClass) Convert from the given message to the given target class.
| |
| doReceive | back to summary |
|---|---|
| protected abstract Message Actually receive a message from the given destination. | |
| receive | back to summary |
|---|---|
| public Message Implements org. Doc from org. Receive a message from a default destination. | |
| receive | back to summary |
|---|---|
| public Message Implements org. Doc from org. Receive a message from the given destination. | |
| receiveAndConvert | back to summary |
|---|---|
| public <T> T receiveAndConvert(Class<T> targetClass) Implements org. Doc from org. Receive a message from a default destination and convert its payload to the specified target class. | |
| receiveAndConvert | back to summary |
|---|---|
| public <T> T receiveAndConvert(D destination, Class<T> targetClass) Implements org. Doc from org. Receive a message from the given destination and convert its payload to the specified target class. | |