public function DrupalQueueInterface::numberOfItems

cis7 system.queue.inc public DrupalQueueInterface::numberOfItems()
cle7 system.queue.inc public DrupalQueueInterface::numberOfItems()
elmsmedia7 system.queue.inc public DrupalQueueInterface::numberOfItems()
icor7 system.queue.inc public DrupalQueueInterface::numberOfItems()
meedjum_blog7 system.queue.inc public DrupalQueueInterface::numberOfItems()
mooc7 system.queue.inc public DrupalQueueInterface::numberOfItems()

Retrieve the number of items in the queue.

This is intended to provide a "best guess" count of the number of items in the queue. Depending on the implementation and the setup, the accuracy of the results of this function may vary.

e.g. On a busy system with a large number of consumers and items, the result might only be valid for a fraction of a second and not provide an accurate representation.

Return value

An integer estimate of the number of items in the queue.

2 methods override DrupalQueueInterface::numberOfItems()
MemoryQueue::numberOfItems in modules/system/system.queue.inc
Retrieve the number of items in the queue.
SystemQueue::numberOfItems in modules/system/system.queue.inc
Retrieve the number of items in the queue.

File

modules/system/system.queue.inc, line 128
Queue functionality.

Class

DrupalQueueInterface

Code

public function numberOfItems();
Error | ELMSLN API

Error

×

Error message

  • Warning: Cannot modify header information - headers already sent by (output started at /var/www/html/elmsln_community/api.elmsln.org/includes/common.inc:2791) in drupal_send_headers() (line 1499 of /var/www/html/elmsln_community/api.elmsln.org/includes/bootstrap.inc).
  • Error: Call to undefined function apc_delete() in DrupalAPCCache->clear() (line 289 of /var/www/html/elmsln_community/api.elmsln.org/sites/all/modules/apc/drupal_apc_cache.inc).
The website encountered an unexpected error. Please try again later.