Defines a Null lock backend.
This implementation won't actually lock anything and will always succeed on lock attempts.
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