You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@rocketmq.apache.org by GitBox <gi...@apache.org> on 2019/07/08 16:53:44 UTC

[GitHub] [rocketmq-client-cpp] jonnxu commented on a change in pull request #162: [feature]message trace

jonnxu commented on a change in pull request #162: [feature]message trace
URL: https://github.com/apache/rocketmq-client-cpp/pull/162#discussion_r301192583
 
 

 ##########
 File path: include/AsyncTraceDispatcher.h
 ##########
 @@ -0,0 +1,118 @@
+#ifndef __AsyncTraceDispatcher_H__
+#define __AsyncTraceDispatcher_H__
+
+#include <atomic>
+#include <condition_variable>
+#include <memory>
+#include <string>
+#include <thread>
+
+#include "DefaultMQProducer.h"
+
+#include "TraceHelper.h"
+
+#include <memory>
+#include "ClientRPCHook.h"
+#include "TraceDispatcher.h"
+namespace rocketmq {
+
+class AsyncTraceDispatcher : public TraceDispatcher, public enable_shared_from_this<AsyncTraceDispatcher> {
+ private:
+  // static InternalLogger log;  //= ClientLogger.getLog();
+  int m_queueSize;
+  int m_batchSize;
+  int m_maxMsgSize;
+  // trace message Producer
+  // ThreadPoolExecutor traceExecutor;
+  std::atomic<long> m_discardCount;
+  // std::thread* worker;
+  std::shared_ptr<std::thread> m_worker;
+
+ public:
 
 Review comment:
   why here is public class members ?

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services