MysqlPlatformContentRepositoryLocker
final class MysqlPlatformContentRepositoryLocker (View source)
| internal |
Utility to acquire advisory locks from a mysql/mariadb database
Methods
static void
forContentRepositoryAndConnection(ContentRepositoryId $contentRepositoryId, Connection $connection)
No description
void
acquireLock(int $timeoutInSeconds)
Acquire a global lock for the content repository, if no lock could be acquired within timeoutInSeconds an exception is thrown
void
releaseLock()
Release a global lock for the content repository.
Details
static void
enableForContentRepository(ContentRepositoryId $contentRepositoryId)
| internal |
No description
static MysqlPlatformContentRepositoryLocker
forContentRepositoryAndConnection(ContentRepositoryId $contentRepositoryId, Connection $connection)
No description
void
acquireLock(int $timeoutInSeconds)
Acquire a global lock for the content repository, if no lock could be acquired within timeoutInSeconds an exception is thrown
void
releaseLock()
Release a global lock for the content repository.