接口 DestinationResolvingMessageReceivingOperations<D>

    • 方法详细资料

      • receiveAndConvert

        <T> 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.
        参数:
        destinationName - the destination name to resolve
        targetClass - the target class for the converted payload
        抛出:
        MessagingException