-
Notifications
You must be signed in to change notification settings - Fork 638
Expand file tree
/
Copy pathDelayBucket.h
More file actions
39 lines (28 loc) · 850 Bytes
/
DelayBucket.h
File metadata and controls
39 lines (28 loc) · 850 Bytes
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
/*
* Copyright (C) 1996-2026 The Squid Software Foundation and contributors
*
* Squid software is distributed under GPLv2+ license and includes
* contributions from numerous individuals and organizations.
* Please see the COPYING and CONTRIBUTORS files for details.
*/
#ifndef SQUID_SRC_DELAYBUCKET_H
#define SQUID_SRC_DELAYBUCKET_H
class DelaySpec;
class StoreEntry;
/* don't use remote storage for these */
/// \ingroup DelayPoolsAPI
class DelayBucket
{
public:
DelayBucket() : level_(0) {}
int const& level() const {return level_;}
int & level() {return level_;}
void stats(StoreEntry *)const;
void update (DelaySpec const &, int incr);
int bytesWanted (int min, int max) const;
void bytesIn(int qty);
void init (DelaySpec const &);
private:
int level_;
};
#endif /* SQUID_SRC_DELAYBUCKET_H */