PhpRiot
Become Zend Certified

Prepare for the ZCE exam using our quizzes (web or iPad/iPhone). More info...


When you're ready get 7.5% off your exam voucher using voucher CJQNOV23 at the Zend Store

Commonality among adapters

The queue services supported by Zend_Queue do not all support the same functions. For example, Zend_Queue_Adapter_Array, Zend_Queue_Adapter_Db, support all functions, while Zend_Queue_Adapter_Activemq does not support queue listing, queue deletion, or counting of messages.

You can determine what functions are supported by using Zend_Queue::isSupported() or Zend_Queue::getCapabilities().

  • createQueue() - create a queue

  • deleteQueue() - delete a queue

  • send() - send a message

    send() is not available in all adapters; the Zend_Queue_Adapter_Null does not support send().

  • receive() - receive messages

    receive() is not available in all adapters; the Zend_Queue_Adapter_Null does not support receive().

  • deleteMessage() - delete a message

  • count() - count the number of messages in a queue

  • isExists() - checks the existence of a queue

receive() methods are employed by each adapter to interact with queues.

The createQueue() and deleteQueue() methods are used to manage queues.

Zend Framework