PHP Class bandwidthThrottle\tokenBucket\storage\SessionStorage

This storage is in the session scope. As PHP's session are thread safe this implementation doesn't provide a locking Mutex.
Author: Markus Malkusch ([email protected])
Inheritance: implements bandwidthThrottle\tokenBucket\storage\Storage, implements bandwidthThrottle\tokenBucket\storage\scope\SessionScope
Afficher le fichier Open project: bandwidth-throttle/token-bucket

Méthodes publiques

Méthode Description
__construct ( string $name ) Sets the bucket's name.
bootstrap ( $microtime )
getMicrotime ( )
getMutex ( )
isBootstrapped ( )
remove ( )
setMicrotime ( $microtime )

Method Details

__construct() public méthode

Sets the bucket's name.
public __construct ( string $name )
$name string The bucket's name.

bootstrap() public méthode

public bootstrap ( $microtime )

getMicrotime() public méthode

public getMicrotime ( )

getMutex() public méthode

public getMutex ( )

isBootstrapped() public méthode

public isBootstrapped ( )

remove() public méthode

public remove ( )

setMicrotime() public méthode

public setMicrotime ( $microtime )