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

Change WAIT_TIME_SECONDS in SQSMessageConsumerPrefetch #83

Open
sidath80 opened this issue Oct 29, 2019 · 2 comments
Open

Change WAIT_TIME_SECONDS in SQSMessageConsumerPrefetch #83

sidath80 opened this issue Oct 29, 2019 · 2 comments

Comments

@sidath80
Copy link

Hi All,

I need to change the value of the WAIT_TIME_SECONDS in SQSMessageConsumerPrefetch to less than 10 seconds.Currently it is 20s.

I am using following code to create the SQS listener ,

SQSConnectionFactory connectionFactory = new SQSConnectionFactory(
new ProviderConfiguration(),
AmazonSQSClientBuilder.standard()
.withCredentials( new InstanceProfileCredentialsProvider(false))

);

@Bean
public DefaultJmsListenerContainerFactory jmsListenerContainerFactory() {
    DefaultJmsListenerContainerFactory factory =
            new DefaultJmsListenerContainerFactory();
    factory.setConnectionFactory(this.connectionFactory);
    factory.setDestinationResolver(new DynamicDestinationResolver());
    factory.setConcurrency("3-10");
    return factory;
}

Thank you
Sid

@turnopil
Copy link

Looks like it was fixed #140

@christian-zyweck
Copy link

I feel that rather than using Reflection to set this value, this should be configurable via properties.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants