Beispiel #1
0
 /**
  * Delete Message
  *
  * @param Message $message - Message
  */
 public function deleteMessage($message)
 {
     $job = new Pheanstalk_Job($message->getId(), strval($message));
     $this->pheanstalk->useTube($this->getQueueName())->delete($job);
 }
Beispiel #2
0
 /**
  * Delete Message
  *
  * @param Message $message - Message
  */
 public function deleteMessage($message)
 {
     $this->sqs->deleteMessage(array('QueueUrl' => $this->getQueueUrl(), 'ReceiptHandle' => $message->getHandle()));
 }