title: How to force ApproximateReceiveCount to be 1?
body: <p>I am using SQS in a java spring boot project in the following way:</p>
  <pre><code>@Bean
      public SimpleMessageListenerContainerFactory simpleMessageListenerContainerFactory(AmazonSQSAsync amazonSqs) {
          SimpleMessageListenerContainerFactory factory = new SimpleMessageListenerContainerFactory();
          factory.setAmazonSqs(amazonSqs);
          factory.setMaxNumberOfMessages(1);
          factory.setWaitTimeOut(20);
          return factory;
      }
  </code></pre>
  <p>I'm getting unordered data and have checked the <code>SimpleMessageListenerContainer</code> logs and it seems that when <code>ApproximateReceiveCount = 2</code> I'm getting unordered data. I thought that by setting <code>factory.setMaxNumberOfMessages(1);</code> I would only be getting 1 message and then <code>ApproximateReceiveCount = 2</code> would not be possible and its value would only ever be 1. Is there a way of enforcing the <code>ApproximateReceiveCount</code> to be 1? Could I do it by setting <code>setMaxNumberOfMessages</code> or should it be done differently?</p>
  <p>Any advice would be much appreciated!</p>