/** * Get a key/value array of metadata for the given queue. * * @param string $queueId * @param array $options * @return array */ public function fetchQueueMetadata($queueId, $options = null) { try { if ($queueId instanceof \Zend\Service\WindowsAzure\Storage\QueueInstance) { $queueId = $queueId->Name; } return $this->_storageClient->getQueueMetadata($queueId); } catch (WindowsAzureException\ExceptionInterface $e) { throw new Exception\RuntimeException('Error on fetching queue metadata: '.$e->getMessage(), $e->getCode(), $e); } }