Class for connecting to queues performing common operations.
category | Zend |
---|---|
package | Zend_Queue |
copyright | Copyright (c) 2005-2015 Zend Technologies USA Inc. (http://www.zend.com) |
license | New BSD License |
__construct($spec, \Zend_Config|array $options = array()
) : void
Can be called as $queue = new Zend_Queue($config);
\Zend_Config
array
Zend_Config or a configuration array
count() : integer
integer
createQueue(string $name, integer $timeout = null
) : \Zend_Queue | false
string
queue name
integer
default visibility timeout
\Zend_Queue_Exception |
---|
\Zend_Queue
false
debugInfo() : array
useful for debugging
array
deleteMessage(\Zend_Queue_Message $message) : boolean
Returns true if the message is deleted, false if the deletion is unsuccessful.
Returns true if the adapter doesn't support message deletion.
\Zend_Queue_Message
\Zend_Queue_Exception |
---|
boolean
deleteQueue() : boolean
This queue is disabled, regardless of the outcome of the deletion of the queue, because the programmers intent is to disable this queue.
boolean
getAdapter() : \Zend_Queue_Adapter_AdapterInterface
\Zend_Queue_Adapter_AdapterInterface
getCapabilities() : array
$array['function name'] = true or false true is supported, false is not supported.
array
getMessageClass() : string
string
getMessageSetClass() : string
string
getName() : string
Note: _setName() used to exist, but it caused confusion with createQueue Will evaluate later to see if we should add it back in.
string
getOption(string $name) : null | mixed
string
null
mixed
Returns null if option does not exist; option value otherwisegetOptions() : array
array
getQueues() : array
\Zend_Queue_Exception |
---|
array
hasOption(string $name) : boolean
string
boolean
isSupported(string $name) : boolean
string
boolean
receive(integer $maxMessages= null
, integer $timeout= null
) : \Zend_Queue_Message_Iterator
integer
integer
\Zend_Queue_Message_Iterator
send(mixed $message) : \Zend_Queue_Message
mixed
message
\Zend_Queue_Exception |
---|
\Zend_Queue_Message
setAdapter(string|\Zend_Queue_Adapter_AdapterInterface $adapter) : \Zend_Queue
string
\Zend_Queue_Adapter_AdapterInterface
\Zend_Queue
Provides a fluent interfacesetMessageClass(string $className) : \Zend_Queue
string
\Zend_Queue
Provides a fluent interfacesetMessageSetClass(string $className) : \Zend_Queue
string
\Zend_Queue
Provides a fluent interfacesetOption(string $name, mixed $value) : \Zend_Queue
string
mixed
\Zend_Queue
setOptions(array $options) : \Zend_Queue
array
\Zend_Queue
_setName(string $name) : \Zend_Queue | false
This is AN UNSUPPORTED FUNCTION
string
\Zend_Queue
false
Provides a fluent interface$_adapter : \Zend_Queue_Adapter_AdapterInterface
null
$_logger : \Zend_Log
null
NAME = 'name'
TIMEOUT = 'timeout'
VISIBILITY_TIMEOUT = 30