public void deleteMessageFromQueue ( Message sqsMessage , ProgressStatus progressStatus ) { final Object reportObject = progressReporter . reportStart ( progressStatus ) ; boolean deleteMessageSuccess = false ; try { sqsClient . deleteMessage ( new DeleteMessageRequest ( config . getSqsUrl ( ) , sqsMessage . getReceiptHandle ( ) ) ) ; deleteMessageSuccess = true ; } catch ( AmazonServiceException e ) { LibraryUtils . handleException ( exceptionHandler , progressStatus , e , "Failed to delete sqs message." ) ; } LibraryUtils . endToProcess ( progressReporter , deleteMessageSuccess , progressStatus , reportObject ) ; }
Delete a message from the SQS queue that you specified in the configuration file .