Zend Framework
1.12
|
Public Member Functions | |
__construct ($options=array()) | |
Constructor. | |
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. | |
deleteMessage ($queueId, $message, $options=null) | |
Delete the specified message from the specified queue. | |
peekMessages ($queueId, $num=1, $options=null) | |
Peek at the messages from the specified queue without removing them. | |
getClient () | |
Get SQS implementation. | |
![]() | |
setMessageClass ($class) | |
Set class to use for message objects. | |
getMessageClass () | |
Get class to use for message objects. | |
setMessageSetClass ($class) | |
Set class to use for message collection objects. | |
getMessageSetClass () | |
Get class to use for message collection objects. | |
Public Attributes | |
const | AWS_ACCESS_KEY = 'aws_accesskey' |
const | AWS_SECRET_KEY = 'aws_secretkey' |
const | CREATE_TIMEOUT = 30 |
Defaults. | |
![]() | |
const | MESSAGE_CLASS = 'message_class' |
@+ option keys | |
const | MESSAGESET_CLASS = 'messageset_class' |
![]() | |
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. | |
Protected Member Functions | |
_makeMessages ($messages) | |
Create Zend_Cloud_QueueService_Message array for Sqs messages. | |
Protected Attributes | |
$_sqs | |
![]() | |
$_messageClass = 'Zend_Cloud_QueueService_Message' | |
$_messageSetClass = 'Zend_Cloud_QueueService_MessageSet' | |
__construct | ( | $options = array() | ) |
|
protected |
Create Zend_Cloud_QueueService_Message array for Sqs messages.
array | $messages |
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.
string | $name | |
array | $options |
Implements Zend_Cloud_QueueService_Adapter.
deleteMessage | ( | $queueId, | |
$message, | |||
$options = null |
|||
) |
Delete the specified message from the specified queue.
string | $queueId | |
Zend_Cloud_QueueService_Message | $message | |
array | $options |
Implements Zend_Cloud_QueueService_Adapter.
deleteQueue | ( | $queueId, | |
$options = null |
|||
) |
Delete a queue.
All messages in the queue will also be deleted.
string | $queueId | |
array | $options |
Implements Zend_Cloud_QueueService_Adapter.
fetchQueueMetadata | ( | $queueId, | |
$options = null |
|||
) |
Get a key/value array of metadata for the given queue.
string | $queueId | |
array | $options |
Implements Zend_Cloud_QueueService_Adapter.
getClient | ( | ) |
listQueues | ( | $options = null | ) |
List all queues.
array | $options |
Implements Zend_Cloud_QueueService_Adapter.
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 |
Implements Zend_Cloud_QueueService_Adapter.
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 |
Implements Zend_Cloud_QueueService_Adapter.
sendMessage | ( | $queueId, | |
$message, | |||
$options = null |
|||
) |
Send a message to the specified queue.
string | $message | |
string | $queueId | |
array | $options |
Implements Zend_Cloud_QueueService_Adapter.
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.
array | $metadata | |
string | $queueId | |
array | $options |
Implements Zend_Cloud_QueueService_Adapter.
|
protected |
const AWS_ACCESS_KEY = 'aws_accesskey' |
const AWS_SECRET_KEY = 'aws_secretkey' |
const CREATE_TIMEOUT = 30 |
Defaults.