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
All Methods Instance Methods Abstract Methods Default Methods Deprecated Methods Modifier and Type Method Description default RabbitTemplate.ReturnCallbackdelegate()Deprecated.- will be removed withRabbitTemplate.ReturnCallback.default voidreturnedMessage(Message message, int replyCode, java.lang.String replyText, java.lang.String exchange, java.lang.String routingKey)Deprecated.in favor ofreturnedMessage(ReturnedMessage)which is easier to use with lambdas.voidreturnedMessage(ReturnedMessage returned)Returned message callback.
-
-
-
Method Detail
-
returnedMessage
@Deprecated default void returnedMessage(Message message, int replyCode, java.lang.String replyText, java.lang.String exchange, java.lang.String routingKey)
Deprecated.in favor ofreturnedMessage(ReturnedMessage)which is easier to use with lambdas.Returned message callback.- Specified by:
returnedMessagein interfaceRabbitTemplate.ReturnCallback- Parameters:
message- the returned message.replyCode- the reply code.replyText- the reply text.exchange- the exchange.routingKey- the routing key.
-
returnedMessage
void returnedMessage(ReturnedMessage returned)
Returned message callback.- Specified by:
returnedMessagein interfaceRabbitTemplate.ReturnCallback- Parameters:
returned- the returned message and metadata.
-
delegate
@Deprecated @Nullable default RabbitTemplate.ReturnCallback delegate()
Deprecated.- will be removed withRabbitTemplate.ReturnCallback.Internal use only; transitional during deprecation.- Returns:
- the legacy delegate.
-
-