Ejemplo n.º 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);
 }
Ejemplo n.º 2
0
 /**
  * Delete Message
  *
  * @param Message $message - Message
  */
 public function deleteMessage($message)
 {
     $this->sqs->deleteMessage(array('QueueUrl' => $this->getQueueUrl(), 'ReceiptHandle' => $message->getHandle()));
 }