@FunctionalInterface public static interface RabbitTemplate.ReturnsCallback extends RabbitTemplate.ReturnCallback
Modifier and Type | Method and Description |
---|---|
default RabbitTemplate.ReturnCallback |
delegate()
Deprecated.
- will be removed with
RabbitTemplate.ReturnCallback . |
default void |
returnedMessage(Message message,
int replyCode,
String replyText,
String exchange,
String routingKey)
Deprecated.
in favor of
returnedMessage(ReturnedMessage) which is
easier to use with lambdas. |
void |
returnedMessage(ReturnedMessage returned)
Returned message callback.
|
@Deprecated default void returnedMessage(Message message, int replyCode, String replyText, String exchange, String routingKey)
returnedMessage(ReturnedMessage)
which is
easier to use with lambdas.returnedMessage
in interface RabbitTemplate.ReturnCallback
message
- the returned message.replyCode
- the reply code.replyText
- the reply text.exchange
- the exchange.routingKey
- the routing key.void returnedMessage(ReturnedMessage returned)
returnedMessage
in interface RabbitTemplate.ReturnCallback
returned
- the returned message and metadata.@Deprecated @Nullable default RabbitTemplate.ReturnCallback delegate()
RabbitTemplate.ReturnCallback
.