Interface RabbitTemplate.ReturnsCallback

    • Method Detail

      • returnedMessage

        @Deprecated
        default void returnedMessage​(org.springframework.amqp.core.Message message,
                                     int replyCode,
                                     java.lang.String replyText,
                                     java.lang.String exchange,
                                     java.lang.String routingKey)
        Deprecated.
        in favor of returnedMessage(ReturnedMessage) which is easier to use with lambdas.
        Returned message callback.
        Specified by:
        returnedMessage in interface RabbitTemplate.ReturnCallback
        Parameters:
        message - the returned message.
        replyCode - the reply code.
        replyText - the reply text.
        exchange - the exchange.
        routingKey - the routing key.
      • returnedMessage

        void returnedMessage​(org.springframework.amqp.core.ReturnedMessage returned)
        Returned message callback.
        Specified by:
        returnedMessage in interface RabbitTemplate.ReturnCallback
        Parameters:
        returned - the returned message and metadata.