DelayUser.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 1996-2017 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 
29 public:
31 
32  void stats(StoreEntry *)const;
37 };
38 
41 {
43 
44 public:
46  DelayUser();
47  virtual ~DelayUser();
48  virtual void stats(StoreEntry * sentry);
49  virtual void dump(StoreEntry *entry) const;
50  virtual void update(int incr);
51  virtual void parse();
52 
54 
55 private:
56 
58  class Id:public DelayIdComposite
59  {
61 
62  public:
64  ~Id();
65  virtual int bytesWanted (int min, int max) const;
66  virtual void bytesIn(int qty);
67 
68  private:
71  };
72 
73  friend class Id;
74 
77 };
78 
79 #endif /* USE_DELAY_POOLS && USE_AUTH */
80 #endif /* DELAYUSER_H */
81 
MEMPROXY_CLASS(DelayUserBucket)
virtual void parse()
Definition: DelayUser.cc:123
RefCount< DelayUser > theUser
Definition: DelayUser.h:69
Splay< DelayUserBucket::Pointer > buckets
Definition: DelayUser.h:76
Definition: splay.h:56
A const & max(A const &lhs, A const &rhs)
virtual void stats(StoreEntry *sentry)
Definition: DelayUser.cc:66
RefCount< DelayUserBucket > Pointer
Definition: DelayUser.h:30
DelayBucket theBucket
Definition: DelayUser.h:35
virtual void update(int incr)
Definition: DelayUser.cc:115
virtual DelayIdComposite::Pointer id(CompositeSelectionDetails &)
Definition: DelayUser.cc:129
DelaySpec spec
Definition: DelayUser.h:75
virtual ~DelayUser()
Definition: DelayUser.cc:28
DelayUserBucket::Pointer theBucket
Definition: DelayUser.h:70
Id(RefCount< DelayUser >, Auth::User::Pointer)
Definition: DelayUser.cc:156
Auth::User::Pointer authUser
Definition: DelayUser.h:36
void stats(StoreEntry *) const
Definition: DelayUser.cc:150
MEMPROXY_CLASS(DelayUser)
RefCount< DelayUser > Pointer
Definition: DelayUser.h:45
virtual int bytesWanted(int min, int max) const
Definition: DelayUser.cc:176
virtual void bytesIn(int qty)
Definition: DelayUser.cc:182
DelayUserBucket(Auth::User::Pointer)
Definition: DelayUser.cc:138
MEMPROXY_CLASS(DelayUser::Id)
A const & min(A const &lhs, A const &rhs)
virtual void dump(StoreEntry *entry) const
Definition: DelayUser.cc:86

 

Introduction

Documentation

Support

Miscellaneous

Web Site Translations

Mirrors