PHP Class Metaphore\LockManager

Datei anzeigen Open project: sobstel/metaphore

Protected Properties

Property Type Description
$acquiredLocks * @var array
$lockStore * @var LockStoreInterface

Public Methods

Method Description
__construct ( Metaphore\Store\LockStoreInterface $lockStore )
__destruct ( )
acquire ( $key, $lockTtl ) : boolean
getLockStore ( ) : Metaphore\Store\LockStoreInterface
release ( $key ) : boolean

Protected Methods

Method Description
prepareLockKey ( $key )

Method Details

__construct() public method

public __construct ( Metaphore\Store\LockStoreInterface $lockStore )
$lockStore Metaphore\Store\LockStoreInterface

__destruct() public method

public __destruct ( )

acquire() public method

public acquire ( $key, $lockTtl ) : boolean
return boolean

getLockStore() public method

public getLockStore ( ) : Metaphore\Store\LockStoreInterface
return Metaphore\Store\LockStoreInterface

prepareLockKey() protected method

protected prepareLockKey ( $key )

release() public method

public release ( $key ) : boolean
return boolean

Property Details

$acquiredLocks protected_oe property

* @var array
protected $acquiredLocks

$lockStore protected_oe property

* @var LockStoreInterface
protected $lockStore