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(String destinationName)
Resolve the given destination name and receive a message from it.
|
<T> T |
receiveAndConvert(String destinationName,
Class<T> targetClass)
Resolve the given destination name, receive a message from it, convert the
payload to the specified target type.
|
receive, receive, receiveAndConvert, receiveAndConvert
Message<?> receive(String destinationName) throws MessagingException
destinationName
- the destination name to resolveMessagingException
<T> T receiveAndConvert(String destinationName, Class<T> targetClass) throws MessagingException
destinationName
- the destination name to resolvetargetClass
- the target class for the converted payloadMessagingException