Zend Framework
1.12
|
Public Member Functions | |
createQueue ($name, $options=null) | |
Create a queue. | |
deleteQueue ($queueId, $options=null) | |
Delete a queue. | |
listQueues ($options=null) | |
List all queues. | |
fetchQueueMetadata ($queueId, $options=null) | |
Get a key/value array of metadata for the given queue. | |
storeQueueMetadata ($queueId, $metadata, $options=null) | |
Store a key/value array of metadata for the specified queue. | |
sendMessage ($queueId, $message, $options=null) | |
Send a message to the specified queue. | |
receiveMessages ($queueId, $max=1, $options=null) | |
Recieve at most $max messages from the specified queue and return the message IDs for messages recieved. | |
peekMessages ($queueId, $num=1, $options=null) | |
Peek at the messages from the specified queue without removing them. | |
deleteMessage ($queueId, $message, $options=null) | |
Delete the specified message from the specified queue. | |
getClient () | |
Get the concrete adapter. | |
Public Attributes | |
const | HTTP_ADAPTER = 'http_adapter' |
Ctor HTTP adapter option. | |
const | VISIBILITY_TIMEOUT = 'visibility_timeout' |
Message visibility timeout option. | |
const | DEFAULT_TIMEOUT = 30 |
Default visibility timeout. | |
createQueue | ( | $name, | |
$options = null |
|||
) |
Create a queue.
Returns the ID of the created queue (typically the URL). It may take some time to create the queue. Check your vendor's documentation for details.
Name constraints: Maximum 80 characters Only alphanumeric characters, hyphens (-), and underscores (_)
string | $name | |
array | $options |
Implemented in Zend_Cloud_QueueService_Adapter_WindowsAzure, Zend_Cloud_QueueService_Adapter_Sqs, and Zend_Cloud_QueueService_Adapter_ZendQueue.
deleteMessage | ( | $queueId, | |
$message, | |||
$options = null |
|||
) |
Delete the specified message from the specified queue.
string | $queueId | |
Zend_Cloud_QueueService_Message | $message | Message to delete |
array | $options |
Implemented in Zend_Cloud_QueueService_Adapter_WindowsAzure, Zend_Cloud_QueueService_Adapter_ZendQueue, and Zend_Cloud_QueueService_Adapter_Sqs.
deleteQueue | ( | $queueId, | |
$options = null |
|||
) |
Delete a queue.
All messages in the queue will also be deleted.
string | $queueId | |
array | $options |
Implemented in Zend_Cloud_QueueService_Adapter_WindowsAzure, Zend_Cloud_QueueService_Adapter_ZendQueue, and Zend_Cloud_QueueService_Adapter_Sqs.
fetchQueueMetadata | ( | $queueId, | |
$options = null |
|||
) |
Get a key/value array of metadata for the given queue.
string | $queueId | |
array | $options |
Implemented in Zend_Cloud_QueueService_Adapter_WindowsAzure, Zend_Cloud_QueueService_Adapter_ZendQueue, and Zend_Cloud_QueueService_Adapter_Sqs.
getClient | ( | ) |
Get the concrete adapter.
Implemented in Zend_Cloud_QueueService_Adapter_WindowsAzure, Zend_Cloud_QueueService_Adapter_ZendQueue, and Zend_Cloud_QueueService_Adapter_Sqs.
listQueues | ( | $options = null | ) |
List all queues.
array | $options |
Implemented in Zend_Cloud_QueueService_Adapter_WindowsAzure, Zend_Cloud_QueueService_Adapter_ZendQueue, and Zend_Cloud_QueueService_Adapter_Sqs.
peekMessages | ( | $queueId, | |
$num = 1 , |
|||
$options = null |
|||
) |
Peek at the messages from the specified queue without removing them.
string | $queueId | |
int | $num | How many messages |
array | $options |
Implemented in Zend_Cloud_QueueService_Adapter_WindowsAzure, Zend_Cloud_QueueService_Adapter_ZendQueue, and Zend_Cloud_QueueService_Adapter_Sqs.
receiveMessages | ( | $queueId, | |
$max = 1 , |
|||
$options = null |
|||
) |
Recieve at most $max messages from the specified queue and return the message IDs for messages recieved.
string | $queueId | |
int | $max | |
array | $options |
Implemented in Zend_Cloud_QueueService_Adapter_WindowsAzure, Zend_Cloud_QueueService_Adapter_ZendQueue, and Zend_Cloud_QueueService_Adapter_Sqs.
sendMessage | ( | $queueId, | |
$message, | |||
$options = null |
|||
) |
Send a message to the specified queue.
string | $queueId | |
string | $message | |
array | $options |
Implemented in Zend_Cloud_QueueService_Adapter_WindowsAzure, Zend_Cloud_QueueService_Adapter_ZendQueue, and Zend_Cloud_QueueService_Adapter_Sqs.
storeQueueMetadata | ( | $queueId, | |
$metadata, | |||
$options = null |
|||
) |
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.
string | $queueId | |
array | $metadata | |
array | $options |
Implemented in Zend_Cloud_QueueService_Adapter_WindowsAzure, Zend_Cloud_QueueService_Adapter_ZendQueue, and Zend_Cloud_QueueService_Adapter_Sqs.
const DEFAULT_TIMEOUT = 30 |
Default visibility timeout.
const HTTP_ADAPTER = 'http_adapter' |
Ctor HTTP adapter option.
const VISIBILITY_TIMEOUT = 'visibility_timeout' |
Message visibility timeout option.