Remove enableBuildConsumeQueueConcurrently attribute from BrokerConfig class

This commit is contained in:
nowinkey
2023-02-14 13:50:47 +08:00
committed by Zhouxiang Zhan
parent dcf84e4125
commit c2ea0922b7
2 changed files with 2 additions and 14 deletions
@@ -401,10 +401,6 @@ public class BrokerConfig extends BrokerIdentity {
*/
private boolean estimateAccumulation = true;
/**
* Build ConsumeQueue concurrently with multi-thread
*/
private boolean enableBuildConsumeQueueConcurrently = false;
public long getMaxPopPollingSize() {
return maxPopPollingSize;
@@ -1661,12 +1657,4 @@ public class BrokerConfig extends BrokerIdentity {
public void setBatchDispatchRequestThreadPoolNums(int batchDispatchRequestThreadPoolNums) {
this.batchDispatchRequestThreadPoolNums = batchDispatchRequestThreadPoolNums;
}
public boolean isEnableBuildConsumeQueueConcurrently() {
return enableBuildConsumeQueueConcurrently;
}
public void setEnableBuildConsumeQueueConcurrently(boolean enableBuildConsumeQueueConcurrently) {
this.enableBuildConsumeQueueConcurrently = enableBuildConsumeQueueConcurrently;
}
}
@@ -234,7 +234,7 @@ public class DefaultMessageStore implements MessageStore {
}
}
if (!brokerConfig.isEnableBuildConsumeQueueConcurrently()) {
if (!messageStoreConfig.isEnableBuildConsumeQueueConcurrently()) {
this.reputMessageService = new ReputMessageService();
} else {
this.reputMessageService = new ConcurrentReputMessageService();
@@ -689,7 +689,7 @@ public class DefaultMessageStore implements MessageStore {
this.recoverTopicQueueTable();
if (!brokerConfig.isEnableBuildConsumeQueueConcurrently()) {
if (!messageStoreConfig.isEnableBuildConsumeQueueConcurrently()) {
this.reputMessageService = new ReputMessageService();
} else {
this.reputMessageService = new ConcurrentReputMessageService();