Static queue implementation.
This allows "undelayed" variants of processes relying on the Queue interface. The queue data resides in memory. It should only be used for items that will be queued and dequeued within a given page request.
Hierarchy
- class MemoryQueue implements BackdropQueueInterface
Expanded class hierarchy of MemoryQueue
Related topics
File
- core/
modules/ system/ system.queue.inc, line 294 - Queue functionality.
Members
Name | Modifiers | Type | Description |
---|---|---|---|
MemoryQueue:: |
protected | property | Counter for item ids. |
MemoryQueue:: |
protected | property | The queue data. |
MemoryQueue:: |
public | function |
Claim an item in the queue for processing. Overrides BackdropQueueInterface:: |
MemoryQueue:: |
public | function |
Add a queue item and store it directly to the queue. Overrides BackdropQueueInterface:: |
MemoryQueue:: |
public | function |
Create a queue. Overrides BackdropQueueInterface:: |
MemoryQueue:: |
public | function |
Delete a finished item from the queue. Overrides BackdropQueueInterface:: |
MemoryQueue:: |
public | function |
Delete a queue and every item in the queue. Overrides BackdropQueueInterface:: |
MemoryQueue:: |
public | function |
Retrieve the number of items in the queue. Overrides BackdropQueueInterface:: |
MemoryQueue:: |
public | function |
Release an item that the worker could not process, so another
worker can come in and process it before the timeout expires. Overrides BackdropQueueInterface:: |
MemoryQueue:: |
public | function | Start working with a queue. |