DelayTagged.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 1996-2020 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 "CompositePoolNode.h"
18 #include "DelayBucket.h"
19 #include "DelayIdComposite.h"
20 #include "DelaySpec.h"
21 #include "splay.h"
22 
25 {
27 
28 public:
30 
31  void stats(StoreEntry *)const;
36 };
37 
40 {
42 
43 public:
45 
46  DelayTagged();
47  virtual ~DelayTagged();
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  virtual void delayRead(DeferredRead const &);
68 
69  private:
72  };
73 
74  friend class Id;
75 
78 };
79 
80 #endif /* USE_DELAY_POOLS */
81 #endif /* DELAYTAGGED_H */
82 
DelayTaggedBucket(String &aTag)
Definition: DelayTagged.cc:127
virtual void update(int incr)
Definition: DelayTagged.cc:103
DelayTaggedBucket::Pointer theBucket
Definition: DelayTagged.h:71
const A & max(A const &lhs, A const &rhs)
DelaySpec spec
Definition: DelayTagged.h:76
virtual int bytesWanted(int min, int max) const
Definition: DelayTagged.cc:164
RefCount< DelayTagged > Pointer
Definition: DelayTagged.h:41
virtual void dump(StoreEntry *entry) const
Definition: DelayTagged.cc:74
RefCount< DelayTagged > theTagged
Definition: DelayTagged.h:70
virtual DelayIdComposite::Pointer id(CompositeSelectionDetails &)
Definition: DelayTagged.cc:119
Definition: splay.h:56
DelayBucket theBucket
Definition: DelayTagged.h:34
Splay< DelayTaggedBucket::Pointer > buckets
Definition: DelayTagged.h:77
void stats(StoreEntry *) const
Definition: DelayTagged.cc:138
virtual void parse()
Definition: DelayTagged.cc:112
RefCount< DelayTaggedBucket > Pointer
Definition: DelayTagged.h:26
virtual void stats(StoreEntry *sentry)
Definition: DelayTagged.cc:54
#define MEMPROXY_CLASS(CLASS)
Id(RefCount< DelayTagged >, String &)
Definition: DelayTagged.cc:144
virtual ~DelayTagged()
Definition: DelayTagged.cc:26
virtual void delayRead(DeferredRead const &)
Definition: DelayTagged.cc:176
const A & min(A const &lhs, A const &rhs)
virtual void bytesIn(int qty)
Definition: DelayTagged.cc:170

 

Introduction

Documentation

Support

Miscellaneous

Web Site Translations

Mirrors