DelayTagged.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 1996-2019 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 
Splay< DelayTaggedBucket::Pointer > buckets
Definition: DelayTagged.h:77
RefCount< DelayTaggedBucket > Pointer
Definition: DelayTagged.h:26
#define MEMPROXY_CLASS(CLASS)
static struct node * parse(FILE *fp)
Definition: parse.c:995
Definition: splay.h:56
A const & max(A const &lhs, A const &rhs)
DelayTaggedBucket::Pointer theBucket
Definition: DelayTagged.h:71
DelayTaggedBucket(String &aTag)
Definition: DelayTagged.cc:127
DelaySpec spec
Definition: DelayTagged.h:76
RefCount< DelayTagged > theTagged
Definition: DelayTagged.h:70
A const & min(A const &lhs, A const &rhs)
DelayBucket theBucket
Definition: DelayTagged.h:34
void stats(StoreEntry *) const
Definition: DelayTagged.cc:138

 

Introduction

Documentation

Support

Miscellaneous

Web Site Translations

Mirrors