提交 77b9bc09 编写于 作者: H hujie

solve conflict

上级 62e65d63
...@@ -302,8 +302,7 @@ public class BrokerController { ...@@ -302,8 +302,7 @@ public class BrokerController {
this.heartbeatThreadPoolQueue, this.heartbeatThreadPoolQueue,
new ThreadFactoryImpl("HeartbeatThread_", true)); new ThreadFactoryImpl("HeartbeatThread_", true));
<<<<<<< HEAD
=======
this.endTransactionExecutor = new BrokerFixedThreadPoolExecutor( this.endTransactionExecutor = new BrokerFixedThreadPoolExecutor(
this.brokerConfig.getEndTransactionThreadPoolNums(), this.brokerConfig.getEndTransactionThreadPoolNums(),
this.brokerConfig.getEndTransactionThreadPoolNums(), this.brokerConfig.getEndTransactionThreadPoolNums(),
...@@ -312,7 +311,6 @@ public class BrokerController { ...@@ -312,7 +311,6 @@ public class BrokerController {
this.endTransactionThreadPoolQueue, this.endTransactionThreadPoolQueue,
new ThreadFactoryImpl("EndTransactionThread_")); new ThreadFactoryImpl("EndTransactionThread_"));
>>>>>>> 53a63460d3a1599a6c51058bb51a73746233022d
this.consumerManageExecutor = this.consumerManageExecutor =
Executors.newFixedThreadPool(this.brokerConfig.getConsumerManageThreadPoolNums(), new ThreadFactoryImpl( Executors.newFixedThreadPool(this.brokerConfig.getConsumerManageThreadPoolNums(), new ThreadFactoryImpl(
"ConsumerManageThread_")); "ConsumerManageThread_"));
......
...@@ -64,14 +64,12 @@ public class BrokerConfig { ...@@ -64,14 +64,12 @@ public class BrokerConfig {
private int clientManageThreadPoolNums = 32; private int clientManageThreadPoolNums = 32;
private int consumerManageThreadPoolNums = 32; private int consumerManageThreadPoolNums = 32;
private int heartbeatThreadPoolNums = Math.min(32, Runtime.getRuntime().availableProcessors()); private int heartbeatThreadPoolNums = Math.min(32, Runtime.getRuntime().availableProcessors());
<<<<<<< HEAD
=======
/** /**
* Thread numbers for EndTransactionProcessor * Thread numbers for EndTransactionProcessor
*/ */
private int endTransactionThreadPoolNums = 8 + Runtime.getRuntime().availableProcessors() * 2; private int endTransactionThreadPoolNums = 8 + Runtime.getRuntime().availableProcessors() * 2;
>>>>>>> 53a63460d3a1599a6c51058bb51a73746233022d
private int flushConsumerOffsetInterval = 1000 * 5; private int flushConsumerOffsetInterval = 1000 * 5;
...@@ -714,7 +712,7 @@ public class BrokerConfig { ...@@ -714,7 +712,7 @@ public class BrokerConfig {
this.transactionCheckInterval = transactionCheckInterval; this.transactionCheckInterval = transactionCheckInterval;
} }
<<<<<<< HEAD
public boolean isAclPlug() { public boolean isAclPlug() {
return isAclPlug; return isAclPlug;
} }
...@@ -723,7 +721,6 @@ public class BrokerConfig { ...@@ -723,7 +721,6 @@ public class BrokerConfig {
this.isAclPlug = isAclPlug; this.isAclPlug = isAclPlug;
} }
=======
public int getEndTransactionThreadPoolNums() { public int getEndTransactionThreadPoolNums() {
return endTransactionThreadPoolNums; return endTransactionThreadPoolNums;
} }
...@@ -747,5 +744,5 @@ public class BrokerConfig { ...@@ -747,5 +744,5 @@ public class BrokerConfig {
public void setWaitTimeMillsInTransactionQueue(long waitTimeMillsInTransactionQueue) { public void setWaitTimeMillsInTransactionQueue(long waitTimeMillsInTransactionQueue) {
this.waitTimeMillsInTransactionQueue = waitTimeMillsInTransactionQueue; this.waitTimeMillsInTransactionQueue = waitTimeMillsInTransactionQueue;
} }
>>>>>>> 53a63460d3a1599a6c51058bb51a73746233022d
} }
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册