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

Method BeforeHandle

phxqueue/consumer/consumer.h:162–162  ·  view source on GitHub ↗

Callback before the worker routine start handle.

Source from the content-addressed store, hash-verified

160
161 // Callback before the worker routine start handle.
162 virtual void BeforeHandle(const comm::proto::ConsumerContext &cc, const comm::proto::QItem &item) {}
163
164 // Callback after the worker routine finished handle.
165 virtual void AfterHandle(const comm::proto::ConsumerContext &cc, const comm::proto::QItem &item, const comm::HandleResult &handle_result) {}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected