Class ExponentialBackoffErrorHandler<T>

java.lang.Object
io.awspring.cloud.sqs.listener.errorhandler.ExponentialBackoffErrorHandler<T>
All Implemented Interfaces:
AsyncErrorHandler<T>

public class ExponentialBackoffErrorHandler<T> extends Object implements AsyncErrorHandler<T>
An implementation of an Exponential Backoff error handler for asynchronous message processing.

This error handler sets the SQS message visibility timeout exponentially based on the number of received attempts whenever an exception occurs.

When AcknowledgementMode is set to ON_SUCCESS (the default), returning a failed future prevents the message from being acknowledged.

Author:
Bruno Garcia, Rafael Pavarini