PHP Класс bandwidthThrottle\tokenBucket\storage\FileStorage

This storage is in the global scope. However the scope is limited to the underlying filesystem. I.e. the scope is not shared between hosts.
Автор: Markus Malkusch ([email protected])
Наследование: implements bandwidthThrottle\tokenBucket\storage\Storage, implements bandwidthThrottle\tokenBucket\storage\scope\GlobalScope
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
__construct ( string $path ) Sets the file path and opens it.
__destruct ( ) Closes the file handle.
bootstrap ( $microtime )
getMicrotime ( )
getMutex ( )
isBootstrapped ( )
remove ( )
setMicrotime ( $microtime )

Приватные методы

Метод Описание
open ( ) Opens the file and initializes the mutex.

Описание методов

__construct() публичный Метод

If the file does not exist yet, it will be created. This is an atomic operation.
public __construct ( string $path )
$path string The file path.

__destruct() публичный Метод

Closes the file handle.
public __destruct ( )

bootstrap() публичный Метод

public bootstrap ( $microtime )

getMicrotime() публичный Метод

public getMicrotime ( )

getMutex() публичный Метод

public getMutex ( )

isBootstrapped() публичный Метод

public isBootstrapped ( )

remove() публичный Метод

public remove ( )

setMicrotime() публичный Метод

public setMicrotime ( $microtime )