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.ReturnCallbackDeprecated.in favor ofreturnedMessage(ReturnedMessage)which is easier to use with lambdas.A callback for returned messages.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Deprecated Methods Modifier and Type Method Description voidreturnedMessage(org.springframework.amqp.core.Message message, int replyCode, java.lang.String replyText, java.lang.String exchange, java.lang.String routingKey)Deprecated.Returned message callback.default voidreturnedMessage(org.springframework.amqp.core.ReturnedMessage returned)Deprecated.Returned message callback.
-
-
-
Method Detail
-
returnedMessage
void returnedMessage(org.springframework.amqp.core.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(org.springframework.amqp.core.ReturnedMessage returned)
Deprecated.Returned message callback.- Parameters:
returned- the returned message and metadata.
-
-