2 * Copyright (C) 1996-2018 The Squid Software Foundation and contributors
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.
9 /* DEBUG: section 77 Delay Pools */
16 #include "auth/Gadgets.h"
17 #include "CompositePoolNode.h"
18 #include "DelayBucket.h"
19 #include "DelayIdComposite.h"
20 #include "DelaySpec.h"
23 /// \ingroup DelayPoolsAPI
24 class DelayTaggedBucket
: public RefCountable
26 MEMPROXY_CLASS(DelayTaggedBucket
);
29 typedef RefCount
<DelayTaggedBucket
> Pointer
;
31 void stats(StoreEntry
*)const;
32 DelayTaggedBucket(String
&aTag
);
34 DelayBucket theBucket
;
38 /// \ingroup DelayPoolsAPI
39 class DelayTagged
: public CompositePoolNode
41 MEMPROXY_CLASS(DelayTagged
);
44 typedef RefCount
<DelayTagged
> Pointer
;
47 virtual ~DelayTagged();
48 virtual void stats(StoreEntry
* sentry
);
49 virtual void dump(StoreEntry
*entry
) const;
50 virtual void update(int incr
);
53 virtual DelayIdComposite::Pointer
id(CompositeSelectionDetails
&);
57 /// \ingroup DelayPoolsInternal
58 class Id
:public DelayIdComposite
60 MEMPROXY_CLASS(DelayTagged::Id
);
63 Id (RefCount
<DelayTagged
>, String
&);
65 virtual int bytesWanted (int min
, int max
) const;
66 virtual void bytesIn(int qty
);
67 virtual void delayRead(DeferredRead
const &);
70 RefCount
<DelayTagged
> theTagged
;
71 DelayTaggedBucket::Pointer theBucket
;
77 Splay
<DelayTaggedBucket::Pointer
> buckets
;
80 #endif /* USE_DELAY_POOLS */
81 #endif /* DELAYTAGGED_H */