awspring / spring-cloud-aws

The New Home for Spring Cloud AWS
http://awspring.io
Apache License 2.0
855 stars 293 forks source link

Consider adding `autostart` property to `SqsOptions.Listener` #1188

Open akefirad opened 4 weeks ago

akefirad commented 4 weeks ago

Type: Feature

Is your feature request related to a problem? Please describe. There are cases in which we might wanna have SQS integration (e.g. publishing messages) but disable SQS listeners. But currently there's no easy way to do this via configuration properties.

Describe the solution you'd like Add a boolean flag to SqsProperties.Listener class; autostart or autoStartup (if you wanna be consistent with the property in SqsContainerOptions class).

Describe alternatives you've considered Disabling the whole SQS integration (using spring.cloud.aws.sqs.enabled) but it doesn't support this exact use case.

Additional context N/A

Happy to send the PR if needed.

tomazfernandes commented 3 weeks ago

Hi @akefirad, sounds good, looking forward to the PR.