Interface RabbitTemplate.ReturnsCallback
- All Superinterfaces:
RabbitTemplate.ReturnCallback
- 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.
@FunctionalInterface
public static interface RabbitTemplate.ReturnsCallback
extends RabbitTemplate.ReturnCallback
A callback for returned messages.
- Since:
- 2.3
-
Method Summary
Modifier and TypeMethodDescriptiondefault RabbitTemplate.ReturnCallback
delegate()
Deprecated.default void
returnedMessage
(Message message, int replyCode, String replyText, String exchange, String routingKey) Deprecated.in favor ofreturnedMessage(ReturnedMessage)
which is easier to use with lambdas.void
returnedMessage
(ReturnedMessage returned) Returned message callback.
-
Method Details
-
returnedMessage
@Deprecated default void returnedMessage(Message message, int replyCode, String replyText, String exchange, String routingKey) Deprecated.in favor ofreturnedMessage(ReturnedMessage)
which is easier to use with lambdas.Returned message callback.- Specified by:
returnedMessage
in interfaceRabbitTemplate.ReturnCallback
- Parameters:
message
- the returned message.replyCode
- the reply code.replyText
- the reply text.exchange
- the exchange.routingKey
- the routing key.
-
returnedMessage
Returned message callback.- Specified by:
returnedMessage
in interfaceRabbitTemplate.ReturnCallback
- Parameters:
returned
- the returned message and metadata.
-
delegate
Deprecated.- will be removed withRabbitTemplate.ReturnCallback
.Internal use only; transitional during deprecation.- Returns:
- the legacy delegate.
-
RabbitTemplate.ReturnCallback
.