Queue/Adapter/Activemq.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_Activemq
Package: Zend_Queue\Adapter





Returns





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
Properties
Methods

_isSubscribed(\Zend_Queue $queue) : booleanChecks if the client is subscribed to the queue
Parameters
Returns
| Name | Type | Description |
|---|---|---|
| $queue | \Zend_Queue |
| Type | Description |
|---|---|
| boolean |

_subscribe(\Zend_Queue $queue) : voidSubscribes the client to the queue.
Parameters
| Name | Type | Description |
|---|---|---|
| $queue | \Zend_Queue |

count(\Zend_Queue $queue = null) : integerReturns the length of the queue
Parameters
Returns
Throws
| Name | Type | Description |
|---|---|---|
| $queue | \Zend_Queue |
| Type | Description |
|---|---|
| integer |
| Exception | Description |
|---|---|
| \Zend_Queue_Exception | (not supported) |

create(string $name, integer $timeout = null) : voidCreate a new queue
Parameters
Throws
| Name | Type | Description |
|---|---|---|
| $name | string | queue name |
| $timeout | integer | default visibility timeout |
| Exception | Description |
|---|---|
| \Zend_Queue_Exception |

delete(string $name) : voidDelete a queue and all of its messages
Parameters
Throws
| Name | Type | Description |
|---|---|---|
| $name | string | queue name |
| Exception | Description |
|---|---|
| \Zend_Queue_Exception |

deleteMessage(\Zend_Queue_Message $message) : booleanDelete a message from the queue
Returns true if the message is deleted, false if the deletion is
unsuccessful.
Parameters| Name | Type | Description |
|---|---|---|
| $message | \Zend_Queue_Message |
| Type | Description |
|---|---|
| boolean |

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

getQueues() : voidGet an array of all available queues
Throws
| Exception | Description |
|---|---|
| \Zend_Queue_Exception |

isExists(string $name) : booleanDoes a queue already exist?
Parameters
Returns
Throws
| Name | Type | Description |
|---|---|---|
| $name | string |
| Type | Description |
|---|---|
| boolean |
| Exception | Description |
|---|---|
| \Zend_Queue_Exception | (not supported) |

receive(integer $maxMessages = null, integer $timeout = null, \Zend_Queue $queue = null) : \Zend_Queue_Message_IteratorReturn the first element in the queue
Parameters
Returns
| Name | Type | Description |
|---|---|---|
| $maxMessages | integer | |
| $timeout | integer | |
| $queue | \Zend_Queue |
| Type | Description |
|---|---|
| \Zend_Queue_Message_Iterator |

send(string $message, \Zend_Queue $queue = null) : \Zend_Queue_MessagePush an element onto the end of the queue
Parameters
Returns
| Name | Type | Description |
|---|---|---|
| $message | string | message to send to the queue |
| $queue | \Zend_Queue |
| Type | Description |
|---|---|
| \Zend_Queue_Message |