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
Details RECEIVE_TIMEOUT_DEFAULT = '30'
Default timeout for recieve() function
Detailsarray $_options = 'array'User-provided options
DetailsZend_Queue_Adapter_Abstract $_queue = 'null'Contains the Zend_Queue that this object
Detailsarray $_queues = 'array'Internal array of queues to save on lookups
Details__construct(
$options, Zend_Queue $queue
=
null
)
:
voidConstructor.
$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
DetailsgetOptions(
)
:
arrayReturns the configuration options in this adapter.
DetailsgetQueue(
)
:
Zend_Queue|nullget the Zend_Queue class that is attached to this object
DetailsisSupported(
string $name
)
:
booleanIndicates if a function is supported or not.
DetailssetQueue(
Zend_Queue $queue
)
:
Zend_Queue_Adapter_AdapterInterfaceset the Zend_Queue class for this object
Details