Interface RabbitTemplate.ReturnCallback

  • All Known Subinterfaces:
    RabbitTemplate.ReturnsCallback
    All Known Implementing Classes:
    AsyncRabbitTemplate
    Enclosing class:
    RabbitTemplate
    Functional Interface:
    This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

    @Deprecated
    @FunctionalInterface
    public static interface RabbitTemplate.ReturnCallback
    Deprecated.
    in favor of returnedMessage(ReturnedMessage) which is easier to use with lambdas.
    A callback for returned messages.
    • Method Detail

      • returnedMessage

        void returnedMessage​(Message message,
                             int replyCode,
                             java.lang.String replyText,
                             java.lang.String exchange,
                             java.lang.String routingKey)
        Deprecated.
        Returned message callback.
        Parameters:
        message - the returned message.
        replyCode - the reply code.
        replyText - the reply text.
        exchange - the exchange.
        routingKey - the routing key.
      • returnedMessage

        default void returnedMessage​(ReturnedMessage returned)
        Deprecated.
        Returned message callback.
        Parameters:
        returned - the returned message and metadata.