| 54 | }; |
| 55 | |
| 56 | class Consumer::ConsumerImpl { |
| 57 | public: |
| 58 | ConsumerImpl() {} |
| 59 | virtual ~ConsumerImpl() {} |
| 60 | |
| 61 | std::string topic = ""; |
| 62 | int topic_id = -1; |
| 63 | comm::FactoryList<comm::HandlerFactory> fs; |
| 64 | HeartBeatLock lock; |
| 65 | FreqMan freq; |
| 66 | ConsumerOption opt; |
| 67 | |
| 68 | int vpid = -1; |
| 69 | comm::proto::ConsumerContext cc; |
| 70 | |
| 71 | int consume_fds[2]; |
| 72 | |
| 73 | vector<shared_ptr<comm::proto::QItem> > items; |
| 74 | vector<comm::HandleResult> handle_results; |
| 75 | |
| 76 | DispatchCtx_t dispatch_ctx; |
| 77 | unique_ptr<ConsumeCtx_t[]> handle_ctxs; |
| 78 | unique_ptr<ConsumeCtx_t[]> batch_handle_ctxs; |
| 79 | unique_ptr<queue<int>[]> handle_buckets; |
| 80 | unique_ptr<bool[]> batch_handle_finish; |
| 81 | |
| 82 | stCoCond_t *cond = nullptr; |
| 83 | int nhandle_task_finished = 0; |
| 84 | int nbatch_handle_task_finished = 0; |
| 85 | |
| 86 | }; |
| 87 | |
| 88 | Consumer::Consumer(const ConsumerOption &opt) : impl_(new ConsumerImpl()) { |
| 89 | assert(impl_); |
nothing calls this directly
no outgoing calls
no test coverage detected