Caution: The documentation you are viewing is
for an older version of Zend Framework.
You can find the documentation of the current version at:
https://docs.zendframework.com/
Customizing Zend_Queue - Zend_Queue
Zend_Queue will accept any adapter that implements Zend_Queue_Adapter_AdapterAbstract. You can create your own adapter by extending one of the existing adapters, or the abstract class Zend_Queue_Adapter_AdapterAbstract. I suggest reviewing Zend_Queue_Adapter_Array as this adapter is the easiest to conceptualize.
You can also change the adapter on the fly as well.
or
Zend_Queue will also accept your own message class. Our variables start with an underscore. For example:
You can extend the existing messaging class. See the example code in tests/Zend/Queue/Custom/Message.php.
Zend_Queue will also accept your own message iterator class. The message iterator class is used to return messages from Zend_Queue_Adapter_Abstract::recieve(). Zend_Queue_Abstract::receive() should always return a container class like Zend_Queue_Message_Iterator, even if there is only one message.
See the example filename in tests/Zend/Queue/Custom/Messages.php.
Zend_Queue can also be overloaded easily.
See the example filename in tests/Zend/Queue/Custom/Queue.php.