Need: to poll/listen 10 messages at a time(Specific count not based on polling time) Existing code base using spring cloud aws messaging polls based on time by default. now required to poll based on the counts of messages.
Looking for a annotation based configuration similar approach to the below code
@SqsListener(value = "xxx-sqs",deletionPolicy = ON_SUCCESS)
public void auditProcessor(String json) throws IOException {
log.info("*********** Inside Listner***********");
log.info("JSON Data "+json);
}
Any help on this would be appreciated.