Zend/Queue/Adapter/Null.php
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.
- Category
- Zend
- Copyright
- Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
- License
-
New BSD License
- Package
- Zend_Queue
- Subpackage
- Adapter
- Version
- $Id: Null.php 24594 2012-01-05 21:27:01Z matthew $
\Zend_Queue_Adapter_Null
Package: Zend\Queue\AdapterClass testing. No supported functions. Also used to disable a Zend_Queue.
- Parent(s)
- \Zend_Queue_Adapter_AdapterAbstract
- Category
- Zend
- Copyright
- Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
- License
-
New BSD License
Methods



count(
$queue
=
null
)
:
void
Return the approximate number of messages in the queue
Parameters
Name |
Type |
Description |
$queue |
|
|
Throws



delete(
$name
)
:
void
Delete a queue and all of it's messages
Parameters
Name |
Type |
Description |
$name |
|
|
Throws



deleteMessage(
$message
)
:
void
Delete a message from the queue
Parameters
Name |
Type |
Description |
$message |
|
|
Throws



getCapabilities(
)
:
array
Return a list of queue capabilities functions
$array['function name'] = true or false
true is supported, false is not supported.
Returns



isExists(
$name
)
:
void
Does a queue already exist?
Parameters
Name |
Type |
Description |
$name |
|
|
Throws



receive(
$maxMessages
=
null, $timeout
=
null, $queue
=
null
)
:
void
Get messages in the queue
Parameters
Name |
Type |
Description |
$maxMessages |
|
|
$timeout |
|
|
$queue |
|
|
Throws



send(
$message, $queue
=
null
)
:
void
Send a message to the queue
Parameters
Name |
Type |
Description |
$message |
|
|
$queue |
|
|
Throws