class PersistentDatabaseLockBackend Defines the persistent database lock backend. This backend is global for this Drupal installation. Hierarchy 
class \Drupal\Core\Lock\LockBackendAbstract implements LockBackendInterface
class \Drupal\Core\Lock\DatabaseLockBackend
class \Drupal\Core\Lock\PersistentDatabaseLockBackend
 
 
 
Related topics  Locking mechanisms Functions to coordinate long-running operations across requests.  File
 core/lib/Drupal/Core/Lock/PersistentDatabaseLockBackend.php, line 13  Namespace Drupal\Core\Lock Members     Name   Modifiers   Type   Description       DatabaseLockBacken8b7c:f320:99b9:690f:4595:cd17:293a:c069$database   protected   property   The database connection.     DatabaseLockBacken8b7c:f320:99b9:690f:4595:cd17:293a:c069acquire   public   function   Acquires a lock. Overrides LockBackendInter8b7c:f320:99b9:690f:4595:cd17:293a:c069acquire     DatabaseLockBacken8b7c:f320:99b9:690f:4595:cd17:293a:c069catchException   protected   function   Act on an exception when semaphore might be stale.     DatabaseLockBacken8b7c:f320:99b9:690f:4595:cd17:293a:c069ensureTableExists   protected   function   Check if the semaphore table exists and create it if not.     DatabaseLockBacken8b7c:f320:99b9:690f:4595:cd17:293a:c069lockMayBeAvailable   public   function   Checks if a lock is available for acquiring. Overrides LockBackendInter8b7c:f320:99b9:690f:4595:cd17:293a:c069lockMayBeAvailable     DatabaseLockBacken8b7c:f320:99b9:690f:4595:cd17:293a:c069release   public   function   Releases the given lock. Overrides LockBackendInter8b7c:f320:99b9:690f:4595:cd17:293a:c069release     DatabaseLockBacken8b7c:f320:99b9:690f:4595:cd17:293a:c069releaseAll   public   function   Releases all locks for the given lock token identifier. Overrides LockBackendInter8b7c:f320:99b9:690f:4595:cd17:293a:c069releaseAll     DatabaseLockBacken8b7c:f320:99b9:690f:4595:cd17:293a:c069schemaDefinition   public   function   Defines the schema for the semaphore table.     DatabaseLockBacken8b7c:f320:99b9:690f:4595:cd17:293a:c069TABLE_NAME     constant   The database table name.     LockBackendAbstract8b7c:f320:99b9:690f:4595:cd17:293a:c069$lockId   protected   property   Current page lock token identifier.     LockBackendAbstract8b7c:f320:99b9:690f:4595:cd17:293a:c069$locks   protected   property   Existing locks for this page.     LockBackendAbstract8b7c:f320:99b9:690f:4595:cd17:293a:c069getLockId   public   function   Gets the unique page token for locks. Overrides LockBackendInter8b7c:f320:99b9:690f:4595:cd17:293a:c069getLockId     LockBackendAbstract8b7c:f320:99b9:690f:4595:cd17:293a:c069wait   public   function   Waits a short amount of time before a second lock acquire attempt. Overrides LockBackendInter8b7c:f320:99b9:690f:4595:cd17:293a:c069wait     PersistentDatabaseLockBacken8b7c:f320:99b9:690f:4595:cd17:293a:c069__construct   public   function   Constructs a new PersistentDatabaseLockBackend. Overrides DatabaseLockBacken8b7c:f320:99b9:690f:4595:cd17:293a:c069__construct    

    
{'path': 'public/docs/drupal~8/core-lib-drupal-core-lock-persistentdatabaselockbackend.php/class/persistentdatabaselockbackend/8.1.x.html', 'source': 'DevDocs.IO'}