]> git.ipfire.org Git - thirdparty/squid.git/blob - src/mgr/ActionWriter.h
Merged from trunk rev.13445
[thirdparty/squid.git] / src / mgr / ActionWriter.h
1 /*
2 * DEBUG: section 16 Cache Manager API
3 *
4 */
5
6 #ifndef SQUID_MGR_ACTION_WRITER_H
7 #define SQUID_MGR_ACTION_WRITER_H
8
9 #include "comm/forward.h"
10 #include "mgr/StoreToCommWriter.h"
11
12 namespace Mgr
13 {
14
15 /// Creates Store entry, fills it using action's fillEntry(), and
16 /// Comm-writes it using parent StoreToCommWriter.
17 class ActionWriter: public StoreToCommWriter
18 {
19 public:
20 ActionWriter(const Action::Pointer &anAction, const Comm::ConnectionPointer &conn);
21
22 protected:
23 /* AsyncJob API */
24 virtual void start();
25
26 private:
27 Action::Pointer action; ///< action that fills the entry
28
29 CBDATA_CLASS2(ActionWriter);
30 };
31
32 } // namespace Mgr
33
34 #endif /* SQUID_MGR_ACTION_WRITER_H */