class NullLockBackend
Defines a Null lock backend.
This implementation won't actually lock anything and will always succeed on lock attempts.
Hierarchy
- class \Drupal\Core\Lock\NullLockBackend implements LockBackendInterface
Related topics
- Locking mechanisms
- Functions to coordinate long-running operations across requests.
File
- core/lib/Drupal/Core/Lock/NullLockBackend.php, line 13
Namespace
Drupal\Core\LockMembers
Name | Modifiers | Type | Description |
---|---|---|---|
NullLockBackend::$lockId | protected | property | Current page lock token identifier. |
NullLockBackend::acquire | public | function | Acquires a lock. Overrides LockBackendInterface::acquire |
NullLockBackend::getLockId | public | function | Gets the unique page token for locks. Overrides LockBackendInterface::getLockId |
NullLockBackend::lockMayBeAvailable | public | function | Checks if a lock is available for acquiring. Overrides LockBackendInterface::lockMayBeAvailable |
NullLockBackend::release | public | function | Releases the given lock. Overrides LockBackendInterface::release |
NullLockBackend::releaseAll | public | function | Releases all locks for the given lock token identifier. Overrides LockBackendInterface::releaseAll |
NullLockBackend::wait | public | function | Waits a short amount of time before a second lock acquire attempt. Overrides LockBackendInterface::wait |
© 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!NullLockBackend.php/class/NullLockBackend/8.1.x