W3cubDocs

/Drupal 8

abstract class LockBackendAbstract

Non backend related common methods implementation for lock backends.

Hierarchy

Related topics

Locking mechanisms
Functions to coordinate long-running operations across requests.

File

core/lib/Drupal/Core/Lock/LockBackendAbstract.php, line 10

Namespace

Drupal\Core\Lock

Members

Name Modifiers Type Description
LockBackendAbstract::$lockId protected property Current page lock token identifier.
LockBackendAbstract::$locks protected property Existing locks for this page.
LockBackendAbstract::getLockId public function Gets the unique page token for locks. Overrides LockBackendInterface::getLockId
LockBackendAbstract::wait public function Waits a short amount of time before a second lock acquire attempt. Overrides LockBackendInterface::wait
LockBackendInterface::acquire public function Acquires a lock.
LockBackendInterface::lockMayBeAvailable public function Checks if a lock is available for acquiring.
LockBackendInterface::release public function Releases the given lock.
LockBackendInterface::releaseAll public function Releases all locks for the given lock token identifier.

© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/core!lib!Drupal!Core!Lock!LockBackendAbstract.php/class/LockBackendAbstract/8.1.x