CRM_Queue_Queue_Memory
class CRM_Queue_Queue_Memory extends CRM_Queue_Queue
A queue implementation which stores items in the CiviCRM SQL database
Properties
array | $items | ||
array | $releaseTimes | ||
$nextQueueItemId |
Methods
Create a reference to queue. After constructing the queue, one should usually call createQueue (if it's a new queue) or loadQueue (if it's known to be an existing queue).
Perform any registation or resource-allocation for a new queue
Perform any loading or pre-fetch for an existing queue.
Release any resources claimed by the queue (memory, DB rows, etc)
Check if the queue exists.
Add a new item to the queue.
Determine number of items remaining in the queue.
Get and remove the next item.
Get the next item.
Remove an item from the queue.
Return an item that could not be processed.
Details
at line 61
__construct(array $queueSpec)
Create a reference to queue. After constructing the queue, one should usually call createQueue (if it's a new queue) or loadQueue (if it's known to be an existing queue).
in CRM_Queue_Queue at line 67
string
getName()
Determine the string name of this queue.
at line 68
createQueue()
Perform any registation or resource-allocation for a new queue
at line 76
loadQueue()
Perform any loading or pre-fetch for an existing queue.
at line 84
deleteQueue()
Release any resources claimed by the queue (memory, DB rows, etc)
at line 94
bool
existsQueue()
Check if the queue exists.
at line 107
createItem(mixed $data, array $options = [])
Add a new item to the queue.
at line 118
int
numberOfItems()
Determine number of items remaining in the queue.
at line 131
object
claimItem(int $leaseTime = 3600)
Get and remove the next item.
at line 161
object
stealItem(int $leaseTime = 3600)
Get the next item.
at line 182
deleteItem(object $item)
Remove an item from the queue.
at line 193
releaseItem(object $item)
Return an item that could not be processed.