public interface DestinationResolvingMessageReceivingOperations<D> extends MessageReceivingOperations<D>
MessageReceivingOperations and adds operations for receiving messages
from a destination specified as a (resolvable) String name.DestinationResolver| Modifier and Type | Method and Description |
|---|---|
Message<?> |
receive(java.lang.String destinationName)
Resolve the given destination name and receive a message from it.
|
<T> T |
receiveAndConvert(java.lang.String destinationName,
java.lang.Class<T> targetClass)
Resolve the given destination name, receive a message from it, convert the
payload to the specified target type.
|
receive, receive, receiveAndConvert, receiveAndConvertMessage<?> receive(java.lang.String destinationName) throws MessagingException
destinationName - the destination name to resolveMessagingException<T> T receiveAndConvert(java.lang.String destinationName,
java.lang.Class<T> targetClass)
throws MessagingException
destinationName - the destination name to resolvetargetClass - the target class for the converted payloadMessagingException