TYPO3
7.6
|
Public Member Functions | |
__construct ($subject) | |
acquire ($mode=self::LOCK_CAPABILITY_EXCLUSIVE) | |
release () | |
destroy () | |
isAcquired () | |
Static Public Member Functions | |
static | getCapabilities () |
static | getPriority () |
Public Attributes | |
const | LOCK_CAPABILITY_EXCLUSIVE = 1 |
const | LOCK_CAPABILITY_SHARED = 2 |
const | LOCK_CAPABILITY_NOBLOCK = 4 |
Interface for locking methods
Definition at line 24 of file LockingStrategyInterface.php.
__construct | ( | $subject | ) |
string | $subject | ID to identify this lock in the system |
LockCreateException | if the lock could not be created |
Implemented in SemaphoreLockStrategy, SimpleLockStrategy, and FileLockStrategy.
acquire | ( | $mode = self::LOCK_CAPABILITY_EXCLUSIVE | ) |
Try to acquire a lock
int | $mode | LOCK_CAPABILITY_EXCLUSIVE or LOCK_CAPABILITY_SHARED |
LockAcquireException | if the lock could not be acquired |
LockAcquireWouldBlockException | if the acquire would have blocked and NOBLOCK was set |
Implemented in SimpleLockStrategy, SemaphoreLockStrategy, and FileLockStrategy.
destroy | ( | ) |
Destroys the resource associated with the lock
Implemented in SimpleLockStrategy, FileLockStrategy, and SemaphoreLockStrategy.
|
static |
Implemented in FileLockStrategy, SimpleLockStrategy, and SemaphoreLockStrategy.
|
static |
Implemented in SimpleLockStrategy, FileLockStrategy, and SemaphoreLockStrategy.
isAcquired | ( | ) |
Get status of this lock
Implemented in FileLockStrategy, SimpleLockStrategy, and SemaphoreLockStrategy.
release | ( | ) |
Release the lock
Implemented in FileLockStrategy, SimpleLockStrategy, and SemaphoreLockStrategy.
const LOCK_CAPABILITY_EXCLUSIVE = 1 |
Exclusive locks can be acquired
Definition at line 29 of file LockingStrategyInterface.php.
Referenced by TypoScriptFrontendController\acquireLock().
const LOCK_CAPABILITY_NOBLOCK = 4 |
Do not block when acquiring the lock
Definition at line 39 of file LockingStrategyInterface.php.
Referenced by TypoScriptFrontendController\acquireLock().
const LOCK_CAPABILITY_SHARED = 2 |
Shared locks can be acquired
Definition at line 34 of file LockingStrategyInterface.php.