]> git.ipfire.org Git - thirdparty/squid.git/blob - src/mgr/Filler.h
Docs: Copyright updates for 2018 (#114)
[thirdparty/squid.git] / src / mgr / Filler.h
1 /*
2 * Copyright (C) 1996-2018 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 16 Cache Manager API */
10
11 #ifndef SQUID_MGR_FILLER_H
12 #define SQUID_MGR_FILLER_H
13
14 #include "comm/forward.h"
15 #include "mgr/Action.h"
16 #include "mgr/StoreToCommWriter.h"
17
18 namespace Mgr
19 {
20
21 /// provides Coordinator with a local cache manager response
22 class Filler: public StoreToCommWriter
23 {
24 CBDATA_CLASS(Filler);
25
26 public:
27 Filler(const Action::Pointer &anAction, const Comm::ConnectionPointer &conn, unsigned int aRequestId);
28
29 protected:
30 /* AsyncJob API */
31 virtual void start();
32 virtual void swanSong();
33
34 private:
35 Action::Pointer action; ///< action that will run() and sendResponse()
36 unsigned int requestId; ///< the ID of the Request we are responding to
37 };
38
39 } // namespace Mgr
40
41 #endif /* SQUID_MGR_FILLER_H */
42