Skip to content

Commit 7f8da88

Browse files
author
Pankaj Agrawal
committed
docs(batch-processing): Support for moving non retryable msg to DLQ
1 parent 2f68f48 commit 7f8da88

File tree

2 files changed

+16
-16
lines changed

2 files changed

+16
-16
lines changed

powertools-sqs/src/main/java/software/amazon/lambda/powertools/sqs/SqsBatch.java

+3-3
Original file line numberDiff line numberDiff line change
@@ -33,9 +33,9 @@
3333
* </p>
3434
*
3535
* <p>
36-
* If you want certain exceptions to be treated as permanent failures, i.e. exceptions which are not worth retrying and
37-
* want such message should be moved to configured dead letter queue of the source SQS queue, you can use
38-
* {@link SqsBatch#nonRetryableExceptions()} to configure such exceptions.
36+
* If you want certain exceptions to be treated as permanent failures, i.e. exceptions where the result of retrying will
37+
* always be a failure and want such message should be moved to configured dead letter queue of the source SQS queue, you
38+
* can use {@link SqsBatch#nonRetryableExceptions()} to configure such exceptions.
3939
* If you want such messages to be deleted instead, set {@link SqsBatch#deleteNonRetryableMessageFromQueue()} to true.
4040
* By default its value is false.
4141
*

powertools-sqs/src/main/java/software/amazon/lambda/powertools/sqs/SqsUtils.java

+13-13
Original file line numberDiff line numberDiff line change
@@ -158,9 +158,9 @@ public static <R> List<R> batchProcessor(final SQSEvent event,
158158
* </p>
159159
*
160160
* <p>
161-
* If you want certain exceptions to be treated as permanent failures, i.e. exceptions which are not worth retrying and
162-
* want such message should be moved to configured dead letter queue of the source SQS queue, you can use
163-
* {@link SqsBatch#nonRetryableExceptions()} to configure such exceptions.
161+
* If you want certain exceptions to be treated as permanent failures, i.e. exceptions where the result of retrying will
162+
* always be a failure and want such message should be moved to configured dead letter queue of the source SQS queue, you
163+
* can use nonRetryableExceptions parameter to configure such exceptions.
164164
*
165165
* If there is no DLQ configured on source SQS queue and {@link SqsBatch#nonRetryableExceptions()} attribute is set, if
166166
* nonRetryableExceptions occurs from {@link SqsMessageHandler}, such exceptions will still be treated as temporary
@@ -244,9 +244,9 @@ public static <R> List<R> batchProcessor(final SQSEvent event,
244244
* </p>
245245
*
246246
* <p>
247-
* If you want certain exceptions to be treated as permanent failures, i.e. exceptions which are not worth retrying and
248-
* want such message should be moved to configured dead letter queue of the source SQS queue, you can use
249-
* {@link SqsBatch#nonRetryableExceptions()} to configure such exceptions.
247+
* If you want certain exceptions to be treated as permanent failures, i.e. exceptions where the result of retrying will
248+
* always be a failure and want such message should be moved to configured dead letter queue of the source SQS queue, you
249+
* can use nonRetryableExceptions parameter to configure such exceptions.
250250
*
251251
* If there is no DLQ configured on source SQS queue and {@link SqsBatch#nonRetryableExceptions()} attribute is set, if
252252
* nonRetryableExceptions occurs from {@link SqsMessageHandler}, such exceptions will still be treated as temporary
@@ -300,10 +300,10 @@ public static <R> List<R> batchProcessor(final SQSEvent event,
300300
* </p>
301301
*
302302
* <p>
303-
* If you want certain exceptions to be treated as permanent failures, i.e. exceptions which are not worth retrying and
304-
* want such message should be moved to configured dead letter queue of the source SQS queue, you can use
305-
* {@link SqsBatch#nonRetryableExceptions()} to configure such exceptions. If you want such messages to be deleted
306-
* instead, set deleteNonRetryableMessageFromQueue to true.
303+
* If you want certain exceptions to be treated as permanent failures, i.e. exceptions where the result of retrying will
304+
* always be a failure and want such message should be moved to configured dead letter queue of the source SQS queue, you
305+
* can use nonRetryableExceptions parameter to configure such exceptions.
306+
* If you want such messages to be deleted instead, set deleteNonRetryableMessageFromQueue to true.
307307
*
308308
* If there is no DLQ configured on source SQS queue and {@link SqsBatch#nonRetryableExceptions()} attribute is set, if
309309
* nonRetryableExceptions occurs from {@link SqsMessageHandler}, such exceptions will still be treated as temporary
@@ -393,9 +393,9 @@ public static <R> List<R> batchProcessor(final SQSEvent event,
393393
* </p>
394394
*
395395
* <p>
396-
* If you want certain exceptions to be treated as permanent failures, i.e. exceptions which are not worth retrying and
397-
* want such message should be moved to configured dead letter queue of the source SQS queue, you can use
398-
* {@link SqsBatch#nonRetryableExceptions()} to configure such exceptions.
396+
* If you want certain exceptions to be treated as permanent failures, i.e. exceptions where the result of retrying will
397+
* always be a failure and want such message should be moved to configured dead letter queue of the source SQS queue, you
398+
* can use nonRetryableExceptions parameter to configure such exceptions.
399399
*
400400
* If there is no DLQ configured on source SQS queue and {@link SqsBatch#nonRetryableExceptions()} attribute is set, if
401401
* nonRetryableExceptions occurs from {@link SqsMessageHandler}, such exceptions will still be treated as temporary

0 commit comments

Comments
 (0)