| GNU Affero General Public License or the licensing of CiviCRM, |
| see the CiviCRM license FAQ at http://civicrm.org/licensing |
+--------------------------------------------------------------------+
-*/
+ */
/**
* A queue is an object (usually backed by some persistent data store)
}
/**
- * Determine the string name of this queue
+ * Determine the string name of this queue.
*
* @return string
*/
public abstract function deleteQueue();
/**
- * Check if the queue exists
+ * Check if the queue exists.
*
* @return bool
*/
public abstract function existsQueue();
/**
- * Add a new item to the queue
+ * Add a new item to the queue.
*
* @param mixed $data
* Serializable PHP object or array.
public abstract function createItem($data, $options = array());
/**
- * Determine number of items remaining in the queue
+ * Determine number of items remaining in the queue.
*
* @return int
*/
public abstract function numberOfItems();
/**
- * Get the next item
+ * Get the next item.
*
* @param int $lease_time
* Seconds.
public abstract function stealItem($lease_time = 3600);
/**
- * Remove an item from the queue
+ * Remove an item from the queue.
*
* @param object $item
* The item returned by claimItem.
public abstract function deleteItem($item);
/**
- * Return an item that could not be processed
+ * Return an item that could not be processed.
*
* @param object $item
* The item returned by claimItem.
*/
public abstract function releaseItem($item);
+
}