title: After creating SQS message, how can I monitor when it gets deleted?
body: <p>My program creates a message in a SQS queue and then needs to wait for one of the workers pulling work on the queue to process it.  I want to monitor the status of a message to determine when it gets deleted, since that would be my indicator that the work is done.  But I can't figure out a way to do this with the SQS API.</p>
  
  <pre><code>SendMessageRequest msgRequest = new SendMessageRequest(SQS_QUEUE_URL, messageBody);
  SendMessageResult result = sqsClient.sendMessage(msgRequest);
  
  String msgId = result.getMessageId();
  
  // so, in theory, this is what I WANT to do...
  
  while(!sqsClient.wasThisMessageDeletedYet(msgId))
     Thread.sleep(1000L);
  
  // continue, confident that because the message was deleted, I can rely upon the fact that the result of the Worker is now stashed where it's supposed to be
  </code></pre>
  
  <p>What's the right way to do "wasThisMessageDeletedYet(id)"? </p>