awslabs / awslabs/amazon-sqs-java-messaging-lib

Change WAIT_TIME_SECONDS in SQSMessageConsumerPrefetch

Open
#83 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
Java
Stars
183
Forks
150
PR merge metrics
No merged PRs in 30d

Description

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

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.