PHP 클래스 NinjaMutex\Tests\Mock\MockLock

저자: Kamil Dziedzic ([email protected])
상속: implements NinjaMutex\Lock\LockInterface
파일 보기 프로젝트 열기: arvenil/ninja-mutex 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$available boolean Whether the service is available
$counter integer Lock counter to protect against recursive deadlock

공개 메소드들

메소드 설명
acquireLock ( string $name, null | integer $timeout = null ) : boolean
isLocked ( $name ) : boolean
releaseLock ( $name ) : boolean
setAvailable ( boolean $available )

메소드 상세

acquireLock() 공개 메소드

public acquireLock ( string $name, null | integer $timeout = null ) : boolean
$name string
$timeout null | integer
리턴 boolean

isLocked() 공개 메소드

public isLocked ( $name ) : boolean
$name
리턴 boolean

releaseLock() 공개 메소드

public releaseLock ( $name ) : boolean
$name
리턴 boolean

setAvailable() 공개 메소드

public setAvailable ( boolean $available )
$available boolean

프로퍼티 상세

$available 보호되어 있는 프로퍼티

Whether the service is available
protected bool $available
리턴 boolean

$counter 보호되어 있는 프로퍼티

Lock counter to protect against recursive deadlock
protected int $counter
리턴 integer