Interface destinationResolvingMessageReceivingOperations<d>
- Type Parameters:
d- the type of destination to receive messages from
- All Superinterfaces:
MessageReceivingOperations<d>
- All Known Implementing Classes:
AbstractdestinationResolvingMessagingTemplate, GenericMessagingTemplate
public interface destinationResolvingMessageReceivingOperations<d>
extends MessageReceivingOperations<d>
Extends
MessageReceivingOperations and adds operations for receiving messages
from a destination specified as a (resolvable) String name.- Since:
- 4.0
- Author:
- Mark Fisher, Rossen Stoyanchev
- See Also:
-
Method Summary
Modifier and TypeMethoddescriptionResolve the given destination name and receive a message from it.<T> @Nullable TreceiveAndConvert(String destinationName, Class<T> targetClass) Resolve the given destination name, receive a message from it, convert the payload to the specified target type.Methods inherited from interface MessageReceivingOperations
receive, receive, receiveAndConvert, receiveAndConvert
-
Method details
-
receive
Resolve the given destination name and receive a message from it.- Parameters:
destinationName- the destination name to resolve- Throws:
MessagingException
-
receiveAndConvert
<T> @Nullable T receiveAndConvert(String destinationName, Class<T> targetClass) throws MessagingException Resolve the given destination name, receive a message from it, convert the payload to the specified target type.- Parameters:
destinationName- the destination name to resolvetargetClass- the target class for the converted payload- Throws:
MessagingException
-