DelayUser.h
Go to the documentation of this file.
1/*
2 * Copyright (C) 1996-2023 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/* DEBUG: section 77 Delay Pools */
10
11#ifndef DELAYUSER_H
12#define DELAYUSER_H
13
14#if USE_DELAY_POOLS && USE_AUTH
15
16#include "auth/Gadgets.h"
17#include "auth/User.h"
18#include "CompositePoolNode.h"
19#include "DelayBucket.h"
20#include "DelayIdComposite.h"
21#include "DelaySpec.h"
22#include "splay.h"
23
26{
28
29public:
31
32 void stats(StoreEntry *)const;
34 ~DelayUserBucket() override;
37};
38
41{
43
44public:
46 DelayUser();
47 ~DelayUser() override;
48 void stats(StoreEntry * sentry) override;
49 void dump(StoreEntry *entry) const override;
50 void update(int incr) override;
51 void parse() override;
52
54
55private:
56
58 class Id:public DelayIdComposite
59 {
61
62 public:
64 ~Id() override;
65 int bytesWanted (int min, int max) const override;
66 void bytesIn(int qty) override;
67
68 private:
71 };
72
73 friend class Id;
74
77};
78
79#endif /* USE_DELAY_POOLS && USE_AUTH */
80#endif /* DELAYUSER_H */
81
#define RefCountable
The locking interface for use on Reference-Counted classes.
Definition: Lock.h:66
RefCount< DelayUserBucket > Pointer
Definition: DelayUser.h:30
Auth::User::Pointer authUser
Definition: DelayUser.h:36
DelayUserBucket(Auth::User::Pointer)
Definition: DelayUser.cc:124
void stats(StoreEntry *) const
Definition: DelayUser.cc:136
~DelayUserBucket() override
Definition: DelayUser.cc:129
DelayBucket theBucket
Definition: DelayUser.h:35
MEMPROXY_CLASS(DelayUserBucket)
~Id() override
Definition: DelayUser.cc:156
int bytesWanted(int min, int max) const override
Definition: DelayUser.cc:162
RefCount< DelayUser > theUser
Definition: DelayUser.h:69
void bytesIn(int qty) override
Definition: DelayUser.cc:168
DelayUserBucket::Pointer theBucket
Definition: DelayUser.h:70
MEMPROXY_CLASS(DelayUser::Id)
Id(RefCount< DelayUser >, Auth::User::Pointer)
Definition: DelayUser.cc:142
void dump(StoreEntry *entry) const override
Definition: DelayUser.cc:80
void update(int incr) override
Definition: DelayUser.cc:101
DelaySpec spec
Definition: DelayUser.h:75
RefCount< DelayUser > Pointer
Definition: DelayUser.h:45
void parse() override
Definition: DelayUser.cc:109
void stats(StoreEntry *sentry) override
Definition: DelayUser.cc:60
MEMPROXY_CLASS(DelayUser)
~DelayUser() override
Definition: DelayUser.cc:28
Splay< DelayUserBucket::Pointer > buckets
Definition: DelayUser.h:76
DelayIdComposite::Pointer id(CompositeSelectionDetails &) override
Definition: DelayUser.cc:115
Definition: splay.h:50
A const & max(A const &lhs, A const &rhs)
A const & min(A const &lhs, A const &rhs)

 

Introduction

Documentation

Support

Miscellaneous

Web Site Translations

Mirrors