You are here

MemoryLimitDatabaseQueueFactory.php in Acquia Content Hub 8

File

src/Queue/MemoryLimitDatabaseQueueFactory.php
View source
<?php

namespace Drupal\acquia_contenthub\Queue;

use Drupal\Core\Queue\QueueDatabaseFactory;

/**
 * A factory for a database queue that checks memory limitations.
 */
class MemoryLimitDatabaseQueueFactory extends QueueDatabaseFactory {

  /**
   * {@inheritdoc}
   */
  public function get($name) {
    return new MemoryLimitDatabaseQueue($name, $this->connection);
  }

}

Classes

Namesort descending Description
MemoryLimitDatabaseQueueFactory A factory for a database queue that checks memory limitations.