-
Notifications
You must be signed in to change notification settings - Fork 30
/
Copy pathclass.throttleconfig.php
54 lines (48 loc) · 1.03 KB
/
class.throttleconfig.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
<?php
/**
* QoS Bandwidth Throttler (part of Lotos Framework)
*
* Copyright (c) 2005-2010 Artur Graniszewski ([email protected])
* All rights reserved.
*
* @category Library
* @package Lotos
* @subpackage QoS
* @copyright Copyright (c) 2005-2010 Artur Graniszewski ([email protected])
* @license GNU LESSER GENERAL PUBLIC LICENSE Version 3, 29 June 2007
* @version $Id$
*/
/**
* Configuration interface.
*/
interface IThrottleConfig {}
/**
* Configuration class.
*/
class ThrottleConfig implements IThrottleConfig
{
/**
* Burst rate limit in bytes per second.
*
* @var int
*/
public $burstLimit = 10000;
/**
* Burst transfer rate time in seconds before reverting to the standard transfer rate.
*
* @var int
*/
public $burstTimeout = 10;
/**
* Standard rate limit in bytes per second.
*
* @var int
*/
public $rateLimit = 10000;
/**
* Enable/disable this module.
*
* @var bool
*/
public $enabled = false;
}