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

Method AddHandlerFactory

phxqueue/consumer/consumer.cpp:99–101  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

97}
98
99void Consumer::AddHandlerFactory(const int handle_id, comm::HandlerFactory * const hf) {
100 impl_->fs.AddFactory(handle_id, hf);
101}
102
103unique_ptr<comm::Handler> Consumer::GetHandler(const int handle_id) {
104 auto &&f = impl_->fs.GetFactory(handle_id);

Callers 2

mainFunction · 0.80
mainFunction · 0.80

Calls 1

AddFactoryMethod · 0.80

Tested by 2

mainFunction · 0.64
mainFunction · 0.64