Interface RabbitTemplate.RecoveryCallback
- 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.
Callback to recover a request that has exhausted its retry policy.
- Since:
- 1.0
-
Method Summary
-
Method Details
-
recover
Recover the exception that was thrown during the last attempt.- Parameters:
lastException- the exception of the last attempt- Returns:
- Object that can be used to replace the result
RabbitTemplate.execute(ChannelCallback)
-