Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SQS: Add autoconfiguration for maxDelayBetweenPolls #1365

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

krutip7
Copy link

@krutip7 krutip7 commented Mar 27, 2025

📢 Type of change

  • Bugfix
  • New feature
  • Enhancement
  • Refactoring

📜 Description

This PR includes following changes:

  • Added maxDelayBetweenPolls configuration property to SqsProperties
  • Added mapping for SqsContainerOptions.maxDelayBetweenPolls in SqsAutoConfiguration for configuring the property in SqsMessageListenerContainerFactory
  • Included test case for the new property in SqsAutoConfigurationTest
  • Added relevant docs for the new auto-configuration property spring.cloud.aws.sqs.listener.max-delay-between-polls

💡 Motivation and Context

Currently, there is no property available to configure the maxDelayBetweenPolls parameter for SQS Listener, making it difficult to configure it through the application properties. This change introduces the property max-delay-between-polls for SQS Listener.

Closes #1354

💚 How did you test it?

Built the project after making necessary changes and included the generated jar in a sample application. Ran this application in debug mode to verify whether the value mentioned in application.properties for max-delay-between-polls was being picked and correctly configured in SqsContainerOptions for the default SqsListenerContainerFactory bean.

📝 Checklist

  • I reviewed submitted code
  • I added tests to verify changes
  • I updated reference documentation to reflect the change
  • All tests passing
  • No breaking changes

🔮 Next steps

- Added configuration property to SqsProperties
- Added mapping for SqsContainerOptions.maxDelayBetweenPolls in SqsAutoConfiguration for configuring properties in SqsMessageListenerContainerFactory
- Included the test for new property in SqsAutoConfigurationTest
- Added docs for the new property max-delay-between-polls

Closes awspring#1354
@github-actions github-actions bot added component: sqs SQS integration related issue type: documentation Documentation or Samples related issue labels Mar 27, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component: sqs SQS integration related issue type: documentation Documentation or Samples related issue
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add maxDelayBetweenPolls to Autoconfiguration
1 participant