]>
Commit | Line | Data |
---|---|---|
8822ebee | 1 | /* |
4ac4a490 | 2 | * Copyright (C) 1996-2017 The Squid Software Foundation and contributors |
8822ebee | 3 | * |
bbc27441 AJ |
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. | |
8822ebee AR |
7 | */ |
8 | ||
bbc27441 AJ |
9 | /* DEBUG: section 16 Cache Manager API */ |
10 | ||
8822ebee AR |
11 | #ifndef SQUID_MGR_ACTION_WRITER_H |
12 | #define SQUID_MGR_ACTION_WRITER_H | |
13 | ||
c3e8e4e9 | 14 | #include "comm/forward.h" |
8822ebee AR |
15 | #include "mgr/StoreToCommWriter.h" |
16 | ||
8822ebee AR |
17 | namespace Mgr |
18 | { | |
19 | ||
20 | /// Creates Store entry, fills it using action's fillEntry(), and | |
21 | /// Comm-writes it using parent StoreToCommWriter. | |
22 | class ActionWriter: public StoreToCommWriter | |
23 | { | |
5c2f68b7 AJ |
24 | CBDATA_CLASS(ActionWriter); |
25 | ||
8822ebee | 26 | public: |
c3e8e4e9 | 27 | ActionWriter(const Action::Pointer &anAction, const Comm::ConnectionPointer &conn); |
8822ebee AR |
28 | |
29 | protected: | |
30 | /* AsyncJob API */ | |
31 | virtual void start(); | |
32 | ||
33 | private: | |
34 | Action::Pointer action; ///< action that fills the entry | |
8822ebee AR |
35 | }; |
36 | ||
37 | } // namespace Mgr | |
38 | ||
39 | #endif /* SQUID_MGR_ACTION_WRITER_H */ | |
f53969cc | 40 |