Exemplo n.º 1
0
 /**
  * Store a key/value array of metadata for the specified queue.
  * WARNING: This operation overwrites any metadata that is located at
  * $destinationPath. Some adapters may not support this method.
  *
  * @param  string $queueId
  * @param  array  $metadata
  * @param  array  $options
  * @return void
  */
 public function storeQueueMetadata($queueId, $metadata, $options = null)
 {
     try {
         if ($queueId instanceof \Zend\Service\WindowsAzure\Storage\QueueInstance) {
             $queueId = $queueId->Name;
         }
         return $this->_storageClient->setQueueMetadata($queueId, $metadata);
     } catch (WindowsAzureException\ExceptionInterface $e) {
         throw new Exception\RuntimeException('Error on setting queue metadata: '.$e->getMessage(), $e->getCode(), $e);
     }
 }