]>
Commit | Line | Data |
---|---|---|
d2a6dcba EB |
1 | /* |
2 | * Copyright (C) 1996-2018 The Squid Software Foundation and contributors | |
3 | * | |
4 | * Squid software is distributed under GPLv2+ license and includes | |
5 | * contributions from numerous individuals and organizations. | |
6 | * Please see the COPYING and CONTRIBUTORS files for details. | |
7 | */ | |
8 | ||
9 | #ifndef SQUID_COLLAPSING_HISTORY_H | |
10 | #define SQUID_COLLAPSING_HISTORY_H | |
11 | ||
12 | /// collapsed forwarding history of a master transaction | |
13 | class CollapsingHistory | |
14 | { | |
15 | public: | |
16 | /// whether at least one request was collapsed | |
17 | bool collapsed() const { return revalidationCollapses || otherCollapses; } | |
18 | ||
19 | /* These stats count collapsing decisions, regardless of their outcome. */ | |
20 | ||
21 | /// the total number of collapsed internal revalidation requests | |
22 | int revalidationCollapses = 0; | |
23 | /// the total number of all other (a.k.a. "classic") collapsed requests | |
24 | int otherCollapses = 0; | |
25 | }; | |
26 | ||
27 | #endif /* SQUID_COLLAPSING_HISTORY_H */ | |
28 |