Skip to content

Commit

Permalink
added queue error policy
Browse files Browse the repository at this point in the history
  • Loading branch information
CriMDev97 committed Nov 16, 2023
1 parent e41e7b8 commit 6e8a8a1
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

import io.awspring.cloud.sqs.config.SqsBootstrapConfiguration;
import io.awspring.cloud.sqs.config.SqsMessageListenerContainerFactory;
import io.awspring.cloud.sqs.listener.acknowledgement.handler.AcknowledgementMode;
import lombok.extern.slf4j.Slf4j;
import org.apache.commons.lang3.StringUtils;
import org.springframework.context.annotation.Bean;
Expand Down Expand Up @@ -35,6 +36,7 @@ public SqsMessageListenerContainerFactory<Object> defaultSqsListenerContainerFac
return SqsMessageListenerContainerFactory
.builder()
.configure(options -> options
.acknowledgementMode(AcknowledgementMode.ON_SUCCESS)
.maxConcurrentMessages(10)
.maxMessagesPerPoll(10))
.sqsAsyncClient(sqsAsyncClient())
Expand Down

0 comments on commit 6e8a8a1

Please sign in to comment.