]> git.ipfire.org Git - thirdparty/squid.git/blob - src/mgr/Filler.h
Source Format Enforcement (#1234)
[thirdparty/squid.git] / src / mgr / Filler.h
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 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 "ipc/forward.h"
16 #include "mgr/Action.h"
17 #include "mgr/StoreToCommWriter.h"
18
19 namespace Mgr
20 {
21
22 /// provides Coordinator with a local cache manager response
23 class Filler: public StoreToCommWriter
24 {
25 CBDATA_CHILD(Filler);
26
27 public:
28 Filler(const Action::Pointer &, const Comm::ConnectionPointer &, Ipc::RequestId);
29
30 protected:
31 /* AsyncJob API */
32 void start() override;
33 void swanSong() override;
34
35 private:
36 Action::Pointer action; ///< action that will run() and sendResponse()
37 Ipc::RequestId requestId; ///< the ID of the Request we are responding to
38 };
39
40 } // namespace Mgr
41
42 #endif /* SQUID_MGR_FILLER_H */
43