示例#1
0
 public function requeue($message, array $options = array())
 {
     $defaults = array('priority' => 0, 'delay' => 0);
     $options += $defaults;
     extract($options, EXTR_OVERWRITE);
     $response = $this->connection->release($message->id(), $priority, $delay);
     if (is_object($response) && $response->status == 'RELEASED') {
         return true;
     }
     return false;
 }