org.springframework.messaging.core

Interface DestinationResolvingMessageReceivingOperations<D>

    • Method Detail

      • receiveAndConvert

        @Nullable
        <T> T receiveAndConvert(java.lang.String destinationName,
                                          java.lang.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 resolve
        targetClass - the target class for the converted payload
        Throws:
        MessagingException