PHP Class bandwidthThrottle\tokenBucket\storage\SingleProcessStorage

This storage is in the request scope. It is not shared among processes and therefore needs no locking.
Author: Markus Malkusch ([email protected])
Inheritance: implements bandwidthThrottle\tokenBucket\storage\Storage, implements bandwidthThrottle\tokenBucket\storage\scope\RequestScope
Show file Open project: bandwidth-throttle/token-bucket

Public Methods

Method Description
__construct ( ) Initialization.
bootstrap ( $microtime )
getMicrotime ( )
getMutex ( )
isBootstrapped ( )
remove ( )
setMicrotime ( $microtime )

Method Details

__construct() public method

Initialization.
public __construct ( )

bootstrap() public method

public bootstrap ( $microtime )

getMicrotime() public method

public getMicrotime ( )

getMutex() public method

public getMutex ( )

isBootstrapped() public method

public isBootstrapped ( )

remove() public method

public remove ( )

setMicrotime() public method

public setMicrotime ( $microtime )