GenericMessagingTemplate
| Modifier and Type | Method and Description |
|---|---|
| public Message | Returns: the received message, possiblynull if the message could not
be received, for example due to a timeoutReceive a message from a default destination. |
| public Message | Returns: the received message, possiblynull if the message could not
be received, for example due to a timeoutthe target destination destination)Receive a message from the given destination. |
| 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 target class to convert the payload to targetClass)Receive a message from a default destination and convert its payload 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 target destination destination, Class<T> the target class to convert the payload to targetClass)Receive a message from the given destination and convert its payload to the specified target class. |
| receive | back to summary |
|---|---|
| public Message Receive a message from a default destination. | |
| receive | back to summary |
|---|---|
| public Message Receive a message from the given destination. | |
| receiveAndConvert | back to summary |
|---|---|
| public <T> T receiveAndConvert(Class<T> targetClass) throws MessagingException 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) throws MessagingException Receive a message from the given destination and convert its payload to the specified target class. | |