LockManager
class LockManager
Class LockManager
Methods
create(string $name)
No description
acquire(string $name, int|null $timeout = NULL)
Create and attempt to acquire a lock.
callable|NULL
getFactory(string $name)
No description
register(string $pattern, string|array $factory)
Register the lock-factory to use for specific lock-names.
Details
at line 52
LockInterface
create(string $name)
at line 82
LockInterface
acquire(string $name, int|null $timeout = NULL)
Create and attempt to acquire a lock.
Note: Be sure to check $lock->isAcquired() to determine whether acquisition was successful.
at line 93
callable|NULL
getFactory(string $name)
at line 113
LockManager
register(string $pattern, string|array $factory)
Register the lock-factory to use for specific lock-names.