Beispiel #1
0
 /**
  * @param MessageInterface $message
  *
  * @return array|mixed|string
  */
 public function encode(MessageInterface $message)
 {
     return $this->toJson($message->getMessageData(), get_class($message));
 }
Beispiel #2
0
 /**
  * @param MessageInterface $message
  *
  * @return boolean
  */
 public function delete(MessageInterface $message)
 {
     return $this->client->deleteMessage(array('QueueUrl' => $this->getQueueUrl(), 'ReceiptHandle' => $message->getReceiptHandle()));
 }