You are here

private function MemoryQueue::bufferInitialize in Purge 8.3

Initialize the buffer.

11 calls to MemoryQueue::bufferInitialize()
MemoryQueue::claimItem in src/Plugin/Purge/Queue/MemoryQueue.php
Claims an item in the queue for processing.
MemoryQueue::createItem in src/Plugin/Purge/Queue/MemoryQueue.php
Adds a queue item and store it directly to the queue.
MemoryQueue::createItemMultiple in src/Plugin/Purge/Queue/MemoryQueue.php
Add multiple items to the queue and store them efficiently.
MemoryQueue::createQueue in src/Plugin/Purge/Queue/MemoryQueue.php
Creates a queue.
MemoryQueue::deleteItem in src/Plugin/Purge/Queue/MemoryQueue.php
Deletes a finished item from the queue.

... See full list

1 method overrides MemoryQueue::bufferInitialize()
FileQueue::bufferInitialize in src/Plugin/Purge/Queue/FileQueue.php
Initialize the buffer.

File

src/Plugin/Purge/Queue/MemoryQueue.php, line 44

Class

MemoryQueue
A QueueInterface compliant volatile memory buffer queue.

Namespace

Drupal\purge\Plugin\Purge\Queue

Code

private function bufferInitialize() {
  if (!$this->bufferInitialized) {
    $this->bufferInitialized = TRUE;
    $this->buffer = [];
  }
}