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

Method BeforeAdd

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

Callback before the pull thread start add items to Store.

Source from the content-addressed store, hash-verified

144
145 // Callback before the pull thread start add items to Store.
146 virtual void BeforeAdd(const comm::proto::AddRequest &req) {}
147
148 // Callback after the pull thread finished add items to Store.
149 virtual void AfterAdd(const comm::proto::AddRequest &req, const comm::proto::AddResponse &resp) {}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected