function 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.

1 method overrides DrupalQueueInterface::numberOfItems()
MemoryQueue::numberOfItems in modules/system/system.queue.inc
Retrieve the number of items in the queue.

File

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

Class

DrupalQueueInterface

Code

public function numberOfItems();

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.