Queue/Adapter/Activemq.php

Show: PublicProtectedPrivateinherited
Table of Contents
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_Activemq

Package: Zend_Queue\Adapter
Class for using Stomp to talk to an Stomp compliant server
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  

Constants

>VConstant  DEFAULT_SCHEME = 'tcp'
>VConstant  DEFAULT_HOST = '127.0.0.1'
>VConstant  DEFAULT_PORT = 61613

Properties

>VPropertyprivate\Zend_Queue_Adapter_Stomp_client $_client = null
Default valuenullDetails
Type
\Zend_Queue_Adapter_Stomp_client
>VPropertyprivatearray $_subscribed = array()
Default valuearray()Details
Type
array

Methods

methodpublic__construct( $options,  $queue = null) : void

Constructor

Parameters
NameTypeDescription
$options
$queue
methodpublic__destruct() : void

Close the socket explicitly when destructed

methodprotected_isSubscribed(\Zend_Queue $queue) : boolean

Checks if the client is subscribed to the queue

Parameters
NameTypeDescription
$queue\Zend_Queue
Returns
TypeDescription
boolean
methodprotected_subscribe(\Zend_Queue $queue) : void

Subscribes the client to the queue.

Parameters
NameTypeDescription
$queue\Zend_Queue
methodpubliccount(\Zend_Queue $queue = null) : integer

Returns the length of the queue

Parameters
NameTypeDescription
$queue\Zend_Queue
Returns
TypeDescription
integer
Throws
ExceptionDescription
\Zend_Queue_Exception(not supported)
methodpubliccreate(string $name, integer $timeout = null) : void

Create a new queue

Parameters
NameTypeDescription
$namestring

queue name

$timeoutinteger

default visibility timeout

Throws
ExceptionDescription
\Zend_Queue_Exception
methodpublicdelete(string $name) : void

Delete a queue and all of its messages

Parameters
NameTypeDescription
$namestring

queue name

Throws
ExceptionDescription
\Zend_Queue_Exception
methodpublicdeleteMessage(\Zend_Queue_Message $message) : boolean

Delete a message from the queue

Returns true if the message is deleted, false if the deletion is unsuccessful.
Parameters
NameTypeDescription
$message\Zend_Queue_Message
Returns
TypeDescription
boolean
methodpublicgetCapabilities() : array

Return a list of queue capabilities functions

$array['function name'] = true or false true is supported, false is not supported.
Returns
TypeDescription
array
methodpublicgetQueues() : void

Get an array of all available queues

Throws
ExceptionDescription
\Zend_Queue_Exception
methodpublicisExists(string $name) : boolean

Does a queue already exist?

Parameters
NameTypeDescription
$namestring
Returns
TypeDescription
boolean
Throws
ExceptionDescription
\Zend_Queue_Exception(not supported)
methodpublicreceive(integer $maxMessages = null, integer $timeout = null, \Zend_Queue $queue = null) : \Zend_Queue_Message_Iterator

Return the first element in the queue

Parameters
NameTypeDescription
$maxMessagesinteger
$timeoutinteger
$queue\Zend_Queue
Returns
TypeDescription
\Zend_Queue_Message_Iterator
methodpublicsend(string $message, \Zend_Queue $queue = null) : \Zend_Queue_Message

Push an element onto the end of the queue

Parameters
NameTypeDescription
$messagestring

message to send to the queue

$queue\Zend_Queue
Returns
TypeDescription
\Zend_Queue_Message
Documentation was generated by phpDocumentor 2.2.0 .