DatabaseQueue::$name

The name of the queue this instance is working with. Type: string File core/lib/Drupal/Core/Queue/DatabaseQueue.php, line 28 Class DatabaseQueue Default queue implementation. Namespace Drupal\Core\Queue Code protected $name;

DatabaseQueue::$connection

The database connection. Type: \Drupal\Core\Database\Connection $connection File core/lib/Drupal/Core/Queue/DatabaseQueue.php, line 35 Class DatabaseQueue Default queue implementation. Namespace Drupal\Core\Queue Code protected $connection;

DatabaseQueue

Default queue implementation. Hierarchy class \Drupal\Core\Queue\DatabaseQueue implements QueueGarbageCollectionInterface, ReliableQueueInterface uses DependencySerializationTrait Related topics Queue operations Queue items to allow later processing. File core/lib/Drupal/Core/Queue/DatabaseQueue.php, line 14 Namespace Drupal\Core\Queue Members Name Modifiers Type Description DatabaseQueue::$connection protected property The database connection. DatabaseQueue::$name

DatabaseNotFoundException

Exception thrown if specified database is not found. Hierarchy class \Drupal\Core\Database\DatabaseNotFoundException extends \RuntimeException File core/lib/Drupal/Core/Database/DatabaseNotFoundException.php, line 8 Namespace Drupal\Core\Database Members

DatabaseLockBackend::__construct

public DatabaseLockBackend::__construct(Connection $database) Constructs a new DatabaseLockBackend. Parameters \Drupal\Core\Database\Connection $database: The database connection. File core/lib/Drupal/Core/Lock/DatabaseLockBackend.php, line 34 Class DatabaseLockBackend Defines the database lock backend. This is the default backend in Drupal. Namespace Drupal\Core\Lock Code public function __construct(Connection $database) { // __destruct() is causing problems with garbage collection

DatabaseLockBackend::TABLE_NAME

The database table name. File core/lib/Drupal/Core/Lock/DatabaseLockBackend.php, line 19 Class DatabaseLockBackend Defines the database lock backend. This is the default backend in Drupal. Namespace Drupal\Core\Lock Code const TABLE_NAME = 'semaphore';

DatabaseLockBackend::schemaDefinition

public DatabaseLockBackend::schemaDefinition() Defines the schema for the semaphore table. File core/lib/Drupal/Core/Lock/DatabaseLockBackend.php, line 209 Class DatabaseLockBackend Defines the database lock backend. This is the default backend in Drupal. Namespace Drupal\Core\Lock Code public function schemaDefinition() { return [ 'description' => 'Table for holding semaphores, locks, flags, etc. that cannot be stored as state since they must not be cached.', 'fields' =&g

DatabaseLockBackend::releaseAll

public DatabaseLockBackend::releaseAll($lock_id = NULL) Releases all locks for the given lock token identifier. Parameters string $lockId: (optional) If none given, remove all locks from the current page. Defaults to NULL. Overrides LockBackendInterface::releaseAll File core/lib/Drupal/Core/Lock/DatabaseLockBackend.php, line 154 Class DatabaseLockBackend Defines the database lock backend. This is the default backend in Drupal. Namespace Drupal\Core\Lock Code public function releaseAll

DatabaseLockBackend::release

public DatabaseLockBackend::release($name) Releases the given lock. Parameters string $name: Overrides LockBackendInterface::release File core/lib/Drupal/Core/Lock/DatabaseLockBackend.php, line 138 Class DatabaseLockBackend Defines the database lock backend. This is the default backend in Drupal. Namespace Drupal\Core\Lock Code public function release($name) { unset($this->locks[$name]); try { $this->database->delete('semaphore') ->condition('name', $name)

DatabaseLockBackend::lockMayBeAvailable

public DatabaseLockBackend::lockMayBeAvailable($name) Checks if a lock is available for acquiring. Parameters string $name: Lock to acquire. Return value bool Overrides LockBackendInterface::lockMayBeAvailable File core/lib/Drupal/Core/Lock/DatabaseLockBackend.php, line 108 Class DatabaseLockBackend Defines the database lock backend. This is the default backend in Drupal. Namespace Drupal\Core\Lock Code public function lockMayBeAvailable($name) { try { $lock = $this->databas