Zend Framework
LICENSE
This source file is subject to the new BSD license that is bundled with this package in the file LICENSE.txt. It is also available through the world-wide-web at this URL: http://framework.zend.com/license/new-bsd If you did not receive a copy of the license and are unable to obtain it through the world-wide-web, please send an email to license@zend.com so we can send you a copy immediately.
Zend Platform JobQueue adapter
ZendApi_JobQueue $_zendQueue = ''
__construct(
array|Zend_Config $options, Zend_Queue|null $queue
=
null
)
:
void
Constructor
__sleep(
)
:
array
Serialize
__wakeup(
)
:
void
Unserialize
count(
Zend_Queue|null $queue
=
null
)
:
integer
Return the approximate number of messages in the queue
create(
string $name, integer $timeout
=
null
)
:
void
Create a new queue
delete(
string $name
)
:
void
Delete a queue and all of its messages
deleteMessage(
Zend_Queue_Message $message
)
:
boolean
Delete a message from the queue
Returns true if the message is deleted, false if the deletion is unsuccessful.
getCapabilities(
)
:
array
Return a list of queue capabilities functions
$array['function name'] = true or false true is supported, false is not supported.
getQueues(
)
:
void
Get an array of all available queues
isExists(
string $name
)
:
boolean
Does a queue already exist?
isJobIdExist(
$id
)
:
receive(
integer $maxMessages
=
null, integer $timeout
=
null, Zend_Queue $queue
=
null
)
:
ArrayIterator
Get messages in the queue
send(
array $message, Zend_Queue $queue
=
null
)
:
Zend_Queue_Message
Send a message to the queue