DelayIdComposite.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 SQUID_SRC_DELAYIDCOMPOSITE_H
12 #define SQUID_SRC_DELAYIDCOMPOSITE_H
13 
14 #if USE_DELAY_POOLS
15 #include "base/forward.h"
16 #include "base/RefCount.h"
17 #include "fatal.h"
18 
20 {
21 
22 public:
24  inline ~DelayIdComposite() override {}
25 
26  virtual int bytesWanted (int min, int max) const =0;
27  virtual void bytesIn(int qty) = 0;
28  /* only aggregate and vector need this today */
29  virtual void delayRead(const AsyncCallPointer &) { fatal("Not implemented"); }
30 };
31 
32 #endif /* USE_DELAY_POOLS */
33 #endif /* SQUID_SRC_DELAYIDCOMPOSITE_H */
34 
void fatal(const char *message)
Definition: fatal.cc:28
virtual void delayRead(const AsyncCallPointer &)
const A & max(A const &lhs, A const &rhs)
virtual void bytesIn(int qty)=0
~DelayIdComposite() override
virtual int bytesWanted(int min, int max) const =0
RefCount< DelayIdComposite > Pointer
const A & min(A const &lhs, A const &rhs)

 

Introduction

Documentation

Support

Miscellaneous