Class ImmediateRequeueMessageRecoverer
java.lang.Object
org.springframework.amqp.rabbit.retry.ImmediateRequeueMessageRecoverer
- All Implemented Interfaces:
MessageRecoverer
The
MessageRecoverer
implementation to throw an ImmediateRequeueAmqpException
for subsequent requeuing in the listener container.- Since:
- 2.1
- Author:
- Artem Bilan, Gary Russell
-
Field Summary
-
Constructor Summary
-
Method Summary
-
Field Details
-
logger
-
-
Constructor Details
-
ImmediateRequeueMessageRecoverer
public ImmediateRequeueMessageRecoverer()
-
-
Method Details
-
recover
Description copied from interface:MessageRecoverer
Callback for message that was consumed but failed all retry attempts.- Specified by:
recover
in interfaceMessageRecoverer
- Parameters:
message
- the message to recovercause
- the cause of the error
-