From 83de262c84bd18cab5a7e58a19e1490e9d680122 Mon Sep 17 00:00:00 2001 From: zhangzhikai <1090861587@qq.com> Date: Wed, 28 Aug 2019 11:14:08 +0800 Subject: [PATCH] Remove end of line comment and add override annotation when rewrite method (#1420) --- .../rocketmq/client/trace/AsyncTraceDispatcher.java | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/client/src/main/java/org/apache/rocketmq/client/trace/AsyncTraceDispatcher.java b/client/src/main/java/org/apache/rocketmq/client/trace/AsyncTraceDispatcher.java index ca3bcfa2..34af0fbe 100644 --- a/client/src/main/java/org/apache/rocketmq/client/trace/AsyncTraceDispatcher.java +++ b/client/src/main/java/org/apache/rocketmq/client/trace/AsyncTraceDispatcher.java @@ -87,12 +87,12 @@ public class AsyncTraceDispatcher implements TraceDispatcher { } else { this.traceTopicName = MixAll.RMQ_SYS_TRACE_TOPIC; } - this.traceExecutor = new ThreadPoolExecutor(// - 10, // - 20, // - 1000 * 60, // - TimeUnit.MILLISECONDS, // - this.appenderQueue, // + this.traceExecutor = new ThreadPoolExecutor( + 10, + 20, + 1000 * 60, + TimeUnit.MILLISECONDS, + this.appenderQueue, new ThreadFactoryImpl("MQTraceSendThread_")); traceProducer = getAndCreateTraceProducer(rpcHook); } @@ -133,6 +133,7 @@ public class AsyncTraceDispatcher implements TraceDispatcher { this.hostConsumer = hostConsumer; } + @Override public void start(String nameSrvAddr, AccessChannel accessChannel) throws MQClientException { if (isStarted.compareAndSet(false, true)) { traceProducer.setNamesrvAddr(nameSrvAddr); -- GitLab