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-2014 Zend Technologies USA Inc. (http://www.zend.com)
- License
- New BSD License
- Package
- Zend_Queue
- Subpackage
- Adapter
- Version
- $Id$
\Zend_Queue_Adapter_Null
Package: Zend_Queue\Adapter
Class testing. No supported functions. Also used to disable a Zend_Queue.
- Parent(s)
- \Zend_Queue_Adapter_AdapterAbstract
- Category
- Zend
- Copyright
- Copyright (c) 2005-2014 Zend Technologies USA Inc. (http://www.zend.com)
- License
- New BSD License
Methods
__construct(array | \Zend_Config $options, null | \Zend_Queue $queue = null) : void
Constructor
Parameters
Name | Type | Description |
---|---|---|
$options | array | \Zend_Config | |
$queue | null | \Zend_Queue |
count( $queue = null) : void
Return the approximate number of messages in the queue
Parameters
Throws
Name | Type | Description |
---|---|---|
$queue |
Exception | Description |
---|---|
\Zend_Queue_Exception | - not supported. |
create( $name, $timeout = null) : void
Create a new queue
Parameters
Throws
Name | Type | Description |
---|---|---|
$name | ||
$timeout |
Exception | Description |
---|---|
\Zend_Queue_Exception | - not supported. |
delete( $name) : void
Delete a queue and all of it's messages
Parameters
Throws
Name | Type | Description |
---|---|---|
$name |
Exception | Description |
---|---|
\Zend_Queue_Exception | - not supported. |
deleteMessage( $message) : void
Delete a message from the queue
Parameters
Throws
Name | Type | Description |
---|---|---|
$message |
Exception | Description |
---|---|
\Zend_Queue_Exception | - not supported. |
getCapabilities() : array
Return a list of queue capabilities functions
$array['function name'] = true or false
true is supported, false is not supported.
ReturnsType | Description |
---|---|
array |
getQueues() : void
Get an array of all available queues
Throws
Exception | Description |
---|---|
\Zend_Queue_Exception | - not supported. |
isExists( $name) : void
Does a queue already exist?
Parameters
Throws
Name | Type | Description |
---|---|---|
$name |
Exception | Description |
---|---|
\Zend_Queue_Exception | - not supported. |
receive( $maxMessages = null, $timeout = null, $queue = null) : void
Get messages in the queue
Parameters
Throws
Name | Type | Description |
---|---|---|
$maxMessages | ||
$timeout | ||
$queue |
Exception | Description |
---|---|
\Zend_Queue_Exception | - not supported. |
send( $message, $queue = null) : void
Send a message to the queue
Parameters
Throws
Name | Type | Description |
---|---|---|
$message | ||
$queue |
Exception | Description |
---|---|
\Zend_Queue_Exception | - not supported. |