DelayTagged.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 1996-2022 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 DELAYTAGGED_H
12 #define DELAYTAGGED_H
13 
14 #if USE_DELAY_POOLS
15 
16 #include "auth/Gadgets.h"
17 #include "base/forward.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 
47  DelayTagged();
48  virtual ~DelayTagged();
49  virtual void stats(StoreEntry * sentry);
50  virtual void dump(StoreEntry *entry) const;
51  virtual void update(int incr);
52  virtual void parse();
53 
55 
56 private:
57 
59  class Id:public DelayIdComposite
60  {
62 
63  public:
65  ~Id();
66  virtual int bytesWanted (int min, int max) const;
67  virtual void bytesIn(int qty);
68  virtual void delayRead(const AsyncCallPointer &);
69 
70  private:
73  };
74 
75  friend class Id;
76 
79 };
80 
81 #endif /* USE_DELAY_POOLS */
82 #endif /* DELAYTAGGED_H */
83 
MEMPROXY_CLASS(DelayTaggedBucket)
DelayTaggedBucket(String &aTag)
Definition: DelayTagged.cc:119
virtual void update(int incr)
Definition: DelayTagged.cc:95
DelayTaggedBucket::Pointer theBucket
Definition: DelayTagged.h:72
DelaySpec spec
Definition: DelayTagged.h:77
virtual int bytesWanted(int min, int max) const
Definition: DelayTagged.cc:156
RefCount< DelayTagged > Pointer
Definition: DelayTagged.h:45
virtual void dump(StoreEntry *entry) const
Definition: DelayTagged.cc:74
A const & max(A const &lhs, A const &rhs)
RefCount< DelayTagged > theTagged
Definition: DelayTagged.h:71
virtual DelayIdComposite::Pointer id(CompositeSelectionDetails &)
Definition: DelayTagged.cc:111
Definition: splay.h:57
DelayBucket theBucket
Definition: DelayTagged.h:35
Splay< DelayTaggedBucket::Pointer > buckets
Definition: DelayTagged.h:78
void stats(StoreEntry *) const
Definition: DelayTagged.cc:130
virtual void delayRead(const AsyncCallPointer &)
Definition: DelayTagged.cc:168
virtual void parse()
Definition: DelayTagged.cc:104
RefCount< DelayTaggedBucket > Pointer
Definition: DelayTagged.h:30
virtual void stats(StoreEntry *sentry)
Definition: DelayTagged.cc:54
Id(RefCount< DelayTagged >, String &)
Definition: DelayTagged.cc:136
virtual ~DelayTagged()
Definition: DelayTagged.cc:26
MEMPROXY_CLASS(DelayTagged)
A const & min(A const &lhs, A const &rhs)
virtual void bytesIn(int qty)
Definition: DelayTagged.cc:162
MEMPROXY_CLASS(DelayTagged::Id)

 

Introduction

Documentation

Support

Miscellaneous

Web Site Translations

Mirrors