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\Lock
Members
| 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 | 
Please login to continue.