Zend Framework
1.12
|
Public Member Functions | |
__construct ($options, Zend_Queue $queue=null) | |
Constructor. | |
__destruct () | |
Close the socket explicitly when destructed. | |
create ($name, $timeout=null) | |
Create a new queue. | |
delete ($name) | |
Delete a queue and all of its messages. | |
deleteMessage (Zend_Queue_Message $message) | |
Delete a message from the queue. | |
getQueues () | |
Get an array of all available queues. | |
receive ($maxMessages=null, $timeout=null, Zend_Queue $queue=null) | |
Return the first element in the queue. | |
send ($message, Zend_Queue $queue=null) | |
Push an element onto the end of the queue. | |
count (Zend_Queue $queue=null) | |
Returns the length of the queue. | |
isExists ($name) | |
Does a queue already exist? | |
getCapabilities () | |
Return a list of queue capabilities functions. | |
![]() | |
__construct ($options, Zend_Queue $queue=null) | |
Constructor. | |
getQueue () | |
get the Zend_Queue class that is attached to this object | |
setQueue (Zend_Queue $queue) | |
set the Zend_Queue class for this object | |
getOptions () | |
Returns the configuration options in this adapter. | |
isSupported ($name) | |
Indicates if a function is supported or not. | |
Public Attributes | |
const | DEFAULT_SCHEME = 'tcp' |
const | DEFAULT_HOST = '127.0.0.1' |
const | DEFAULT_PORT = 61613 |
![]() | |
const | CREATE_TIMEOUT_DEFAULT = 30 |
Default timeout for createQueue() function. | |
const | RECEIVE_TIMEOUT_DEFAULT = 30 |
Default timeout for recieve() function. | |
Protected Member Functions | |
_isSubscribed (Zend_Queue $queue) | |
Checks if the client is subscribed to the queue. | |
_subscribe (Zend_Queue $queue) | |
Subscribes the client to the queue. | |
Additional Inherited Members | |
![]() | |
$_options = array() | |
$_queues = array() | |
$_queue = null | |
__construct | ( | $options, | |
Zend_Queue | $queue = null |
||
) |
Constructor.
array | Zend_Config | $config | An array having configuration data |
Zend_Queue | The Zend_Queue object that created this class |
Implements Zend_Queue_Adapter_AdapterInterface.
__destruct | ( | ) |
Close the socket explicitly when destructed.
|
protected |
|
protected |
count | ( | Zend_Queue | $queue = null | ) |
Returns the length of the queue.
Zend_Queue | $queue |
Zend_Queue_Exception | (not supported) |
Implements Zend_Queue_Adapter_AdapterInterface.
create | ( | $name, | |
$timeout = null |
|||
) |
Create a new queue.
string | $name | queue name |
integer | $timeout | default visibility timeout |
Zend_Queue_Exception |
Implements Zend_Queue_Adapter_AdapterInterface.
delete | ( | $name | ) |
Delete a queue and all of its messages.
string | $name | queue name |
Zend_Queue_Exception |
Implements Zend_Queue_Adapter_AdapterInterface.
deleteMessage | ( | Zend_Queue_Message | $message | ) |
Delete a message from the queue.
Returns true if the message is deleted, false if the deletion is unsuccessful.
Zend_Queue_Message | $message |
Implements Zend_Queue_Adapter_AdapterInterface.
getCapabilities | ( | ) |
Return a list of queue capabilities functions.
$array['function name'] = true or false true is supported, false is not supported.
string | $name |
Implements Zend_Queue_Adapter_AdapterInterface.
getQueues | ( | ) |
Get an array of all available queues.
Zend_Queue_Exception |
Implements Zend_Queue_Adapter_AdapterInterface.
isExists | ( | $name | ) |
Does a queue already exist?
string | $name |
Zend_Queue_Exception | (not supported) |
Implements Zend_Queue_Adapter_AdapterInterface.
receive | ( | $maxMessages = null , |
|
$timeout = null , |
|||
Zend_Queue | $queue = null |
||
) |
Return the first element in the queue.
integer | $maxMessages | |
integer | $timeout | |
Zend_Queue | $queue |
Implements Zend_Queue_Adapter_AdapterInterface.
send | ( | $message, | |
Zend_Queue | $queue = null |
||
) |
Push an element onto the end of the queue.
string | $message | message to send to the queue |
Zend_Queue | $queue |
Implements Zend_Queue_Adapter_AdapterInterface.
const DEFAULT_HOST = '127.0.0.1' |
const DEFAULT_PORT = 61613 |
const DEFAULT_SCHEME = 'tcp' |