PHP Class yii\mutex\OracleMutex

Application configuration example: [ 'components' => [ 'db' => [ 'class' => 'yii\db\Connection', 'dsn' => 'oci:dbname=LOCAL_XE', ... ] 'mutex' => [ 'class' => 'yii\mutex\OracleMutex', 'lockMode' => 'NL_MODE', 'releaseOnCommit' => true, ... ], ], ]
See also: http://docs.oracle.com/cd/B19306_01/appdev.102/b14258/d_lock.htm
See also: Mutex
Since: 2.0.10
Author: Alexander Zlakomanov ([email protected])
Inheritance: extends yii\mutex\DbMutex
Afficher le fichier Open project: yiisoft/yii2

Méthodes publiques

Свойство Type Description
$lockMode lock mode to be used.
$releaseOnCommit whether to release lock on commit.

Méthodes publiques

Méthode Description
init ( ) Initializes Oracle specific mutex component implementation.

Méthodes protégées

Méthode Description
acquireLock ( string $name, integer $timeout ) : boolean Acquires lock by given name.
releaseLock ( string $name ) : boolean Releases lock by given name.

Method Details

acquireLock() protected méthode

Acquires lock by given name.
See also: http://docs.oracle.com/cd/B19306_01/appdev.102/b14258/d_lock.htm
protected acquireLock ( string $name, integer $timeout ) : boolean
$name string of the lock to be acquired.
$timeout integer to wait for lock to become released.
Résultat boolean acquiring result.

init() public méthode

Initializes Oracle specific mutex component implementation.
public init ( )

releaseLock() protected méthode

Releases lock by given name.
See also: http://docs.oracle.com/cd/B19306_01/appdev.102/b14258/d_lock.htm
protected releaseLock ( string $name ) : boolean
$name string of the lock to be released.
Résultat boolean release result.

Property Details

$lockMode public_oe property

lock mode to be used.
See also: http://docs.oracle.com/cd/B19306_01/appdev.102/b14258/d_lock.htm#CHDBCFDI
public $lockMode

$releaseOnCommit public_oe property

whether to release lock on commit.
public $releaseOnCommit