class SearchIndexUpdateJmsMessageListener {

    @JmsListener(id = HerdJmsDestinationResolver.SQS_DESTINATION_SEARCH_INDEX_UPDATE_QUEUE,
        containerFactory = "jmsListenerContainerFactory",
        destination = HerdJmsDestinationResolver.SQS_DESTINATION_SEARCH_INDEX_UPDATE_QUEUE)
    public void processMessage(String payload, @Headers Map<Object, Object> allHeaders)
    {
        // Call the process message with retry private method.
        processMessageWithRetry(payload, allHeaders);
    }

}