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.
Class for connecting to queues performing common operations.
CREATE_TIMEOUT_DEFAULT = '30'
Default timeout for createQueue() function
RECEIVE_TIMEOUT_DEFAULT = '30'
Default timeout for recieve() function
array $_options = 'array'
User-provided options
Zend_Queue_Adapter_Abstract $_queue = 'null'
Contains the Zend_Queue that this object
array $_queues = 'array'
Internal array of queues to save on lookups
__construct(
$options, Zend_Queue $queue
=
null
)
:
void
Constructor.
$options is an array of key/value pairs or an instance of Zend_Config containing configuration options. These options are common to most adapters:
See the Zend_Queue Adapter Notes documentation for example configurations.
Some options are used on a case-by-case basis by adapters:
access_key => (string) Amazon AWS Access Key secret_key => (string) Amazon AWS Secret Key dbname => (string) The name of the database to user username => (string) Connect to the database as this username. password => (string) Password associated with the username. host => (string) What host to connect to, defaults to localhost port => (string) The port of the database
getOptions(
)
:
array
Returns the configuration options in this adapter.
getQueue(
)
:
Zend_Queue|null
get the Zend_Queue class that is attached to this object
isSupported(
string $name
)
:
boolean
Indicates if a function is supported or not.
setQueue(
Zend_Queue $queue
)
:
Zend_Queue_Adapter_AdapterInterface
set the Zend_Queue class for this object