mirror of
https://github.com/apache/rocketmq.git
synced 2026-09-19 02:23:24 +08:00
Remove enableBuildConsumeQueueConcurrently attribute from BrokerConfig class
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user