MCPcopy Create free account
hub / github.com/Tencent/phxqueue / Handler

Class Handler

phxqueue/comm/handler.h:29–41  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

27};
28
29class Handler {
30 public:
31 Handler() {}
32 virtual ~Handler() {}
33
34 virtual HandleResult Handle(const proto::ConsumerContext &cc, proto::QItem &item, std::string &uncompressed_buffer) = 0;
35
36 void SetBufferUpdated(bool buffer_updated) {buffer_updated_ = buffer_updated;}
37 bool IsBufferUpdated() { return buffer_updated_; }
38
39 private:
40 bool buffer_updated_{false};
41};
42
43template <class T>
44class PBHandler : public Handler {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected