Java Code Examples for org.apache.rocketmq.store.config.MessageStoreConfig#setEnableConsumeQueueExt()
The following examples show how to use
org.apache.rocketmq.store.config.MessageStoreConfig#setEnableConsumeQueueExt() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: ScheduleMessageServiceTest.java From rocketmq with Apache License 2.0 | 6 votes |
@Before public void init() throws Exception { messageStoreConfig = new MessageStoreConfig(); messageStoreConfig.setMessageDelayLevel(testMessageDelayLevel); messageStoreConfig.setMappedFileSizeCommitLog(commitLogFileSize); messageStoreConfig.setMappedFileSizeConsumeQueue(cqFileSize); messageStoreConfig.setMappedFileSizeConsumeQueueExt(cqExtFileSize); messageStoreConfig.setMessageIndexEnable(false); messageStoreConfig.setEnableConsumeQueueExt(true); messageStoreConfig.setStorePathRootDir(storePath); messageStoreConfig.setStorePathCommitLog(storePath + File.separator + "commitlog"); brokerConfig = new BrokerConfig(); BrokerStatsManager manager = new BrokerStatsManager(brokerConfig.getBrokerClusterName()); messageStore = new DefaultMessageStore(messageStoreConfig, manager, new MyMessageArrivingListener(), new BrokerConfig()); assertThat(messageStore.load()).isTrue(); messageStore.start(); scheduleMessageService = messageStore.getScheduleMessageService(); }
Example 2
Source File: MessageStoreWithFilterTest.java From DDMQ with Apache License 2.0 | 5 votes |
public MessageStoreConfig buildStoreConfig(int commitLogFileSize, int cqFileSize, boolean enableCqExt, int cqExtFileSize) { MessageStoreConfig messageStoreConfig = new MessageStoreConfig(); messageStoreConfig.setMapedFileSizeCommitLog(commitLogFileSize); messageStoreConfig.setMapedFileSizeConsumeQueue(cqFileSize); messageStoreConfig.setMappedFileSizeConsumeQueueExt(cqExtFileSize); messageStoreConfig.setMessageIndexEnable(false); messageStoreConfig.setEnableConsumeQueueExt(enableCqExt); messageStoreConfig.setStorePathRootDir(storePath); messageStoreConfig.setStorePathCommitLog(storePath + File.separator + "commitlog"); return messageStoreConfig; }
Example 3
Source File: ConsumeQueueTest.java From DDMQ with Apache License 2.0 | 5 votes |
public MessageStoreConfig buildStoreConfig(int commitLogFileSize, int cqFileSize, boolean enableCqExt, int cqExtFileSize) { MessageStoreConfig messageStoreConfig = new MessageStoreConfig(); messageStoreConfig.setMapedFileSizeCommitLog(commitLogFileSize); messageStoreConfig.setMapedFileSizeConsumeQueue(cqFileSize); messageStoreConfig.setMappedFileSizeConsumeQueueExt(cqExtFileSize); messageStoreConfig.setMessageIndexEnable(false); messageStoreConfig.setEnableConsumeQueueExt(enableCqExt); messageStoreConfig.setStorePathRootDir(storePath); messageStoreConfig.setStorePathCommitLog(storePath + File.separator + "commitlog"); return messageStoreConfig; }
Example 4
Source File: MessageStoreWithFilterTest.java From rocketmq-4.3.0 with Apache License 2.0 | 5 votes |
public MessageStoreConfig buildStoreConfig(int commitLogFileSize, int cqFileSize, boolean enableCqExt, int cqExtFileSize) { MessageStoreConfig messageStoreConfig = new MessageStoreConfig(); messageStoreConfig.setMapedFileSizeCommitLog(commitLogFileSize); messageStoreConfig.setMapedFileSizeConsumeQueue(cqFileSize); messageStoreConfig.setMappedFileSizeConsumeQueueExt(cqExtFileSize); messageStoreConfig.setMessageIndexEnable(false); messageStoreConfig.setEnableConsumeQueueExt(enableCqExt); messageStoreConfig.setStorePathRootDir(storePath); messageStoreConfig.setStorePathCommitLog(storePath + File.separator + "commitlog"); return messageStoreConfig; }
Example 5
Source File: ConsumeQueueTest.java From rocketmq-4.3.0 with Apache License 2.0 | 5 votes |
public MessageStoreConfig buildStoreConfig(int commitLogFileSize, int cqFileSize, boolean enableCqExt, int cqExtFileSize) { MessageStoreConfig messageStoreConfig = new MessageStoreConfig(); messageStoreConfig.setMapedFileSizeCommitLog(commitLogFileSize); messageStoreConfig.setMapedFileSizeConsumeQueue(cqFileSize); messageStoreConfig.setMappedFileSizeConsumeQueueExt(cqExtFileSize); messageStoreConfig.setMessageIndexEnable(false); messageStoreConfig.setEnableConsumeQueueExt(enableCqExt); messageStoreConfig.setStorePathRootDir(storePath); messageStoreConfig.setStorePathCommitLog(storePath + File.separator + "commitlog"); return messageStoreConfig; }
Example 6
Source File: MessageStoreWithFilterTest.java From rocketmq-read with Apache License 2.0 | 5 votes |
public MessageStoreConfig buildStoreConfig(int commitLogFileSize, int cqFileSize, boolean enableCqExt, int cqExtFileSize) { MessageStoreConfig messageStoreConfig = new MessageStoreConfig(); messageStoreConfig.setMapedFileSizeCommitLog(commitLogFileSize); messageStoreConfig.setMapedFileSizeConsumeQueue(cqFileSize); messageStoreConfig.setMappedFileSizeConsumeQueueExt(cqExtFileSize); messageStoreConfig.setMessageIndexEnable(false); messageStoreConfig.setEnableConsumeQueueExt(enableCqExt); messageStoreConfig.setStorePathRootDir(storePath); messageStoreConfig.setStorePathCommitLog(storePath + File.separator + "commitlog"); return messageStoreConfig; }
Example 7
Source File: ConsumeQueueTest.java From rocketmq-read with Apache License 2.0 | 5 votes |
public MessageStoreConfig buildStoreConfig(int commitLogFileSize, int cqFileSize, boolean enableCqExt, int cqExtFileSize) { MessageStoreConfig messageStoreConfig = new MessageStoreConfig(); messageStoreConfig.setMapedFileSizeCommitLog(commitLogFileSize); messageStoreConfig.setMapedFileSizeConsumeQueue(cqFileSize); messageStoreConfig.setMappedFileSizeConsumeQueueExt(cqExtFileSize); messageStoreConfig.setMessageIndexEnable(false); messageStoreConfig.setEnableConsumeQueueExt(enableCqExt); messageStoreConfig.setStorePathRootDir(storePath); messageStoreConfig.setStorePathCommitLog(storePath + File.separator + "commitlog"); return messageStoreConfig; }
Example 8
Source File: MessageStoreWithFilterTest.java From DDMQ with Apache License 2.0 | 5 votes |
public MessageStoreConfig buildStoreConfig(int commitLogFileSize, int cqFileSize, boolean enableCqExt, int cqExtFileSize) { MessageStoreConfig messageStoreConfig = new MessageStoreConfig(); messageStoreConfig.setMapedFileSizeCommitLog(commitLogFileSize); messageStoreConfig.setMapedFileSizeConsumeQueue(cqFileSize); messageStoreConfig.setMappedFileSizeConsumeQueueExt(cqExtFileSize); messageStoreConfig.setMessageIndexEnable(false); messageStoreConfig.setEnableConsumeQueueExt(enableCqExt); messageStoreConfig.setStorePathRootDir(storePath); messageStoreConfig.setStorePathCommitLog(storePath + File.separator + "commitlog"); return messageStoreConfig; }
Example 9
Source File: ConsumeQueueTest.java From DDMQ with Apache License 2.0 | 5 votes |
public MessageStoreConfig buildStoreConfig(int commitLogFileSize, int cqFileSize, boolean enableCqExt, int cqExtFileSize) { MessageStoreConfig messageStoreConfig = new MessageStoreConfig(); messageStoreConfig.setMapedFileSizeCommitLog(commitLogFileSize); messageStoreConfig.setMapedFileSizeConsumeQueue(cqFileSize); messageStoreConfig.setMappedFileSizeConsumeQueueExt(cqExtFileSize); messageStoreConfig.setMessageIndexEnable(false); messageStoreConfig.setEnableConsumeQueueExt(enableCqExt); messageStoreConfig.setStorePathRootDir(storePath); messageStoreConfig.setStorePathCommitLog(storePath + File.separator + "commitlog"); return messageStoreConfig; }
Example 10
Source File: MessageStoreWithFilterTest.java From rocketmq-all-4.1.0-incubating with Apache License 2.0 | 5 votes |
public MessageStoreConfig buildStoreConfig(int commitLogFileSize, int cqFileSize, boolean enableCqExt, int cqExtFileSize) { MessageStoreConfig messageStoreConfig = new MessageStoreConfig(); messageStoreConfig.setMapedFileSizeCommitLog(commitLogFileSize); messageStoreConfig.setMapedFileSizeConsumeQueue(cqFileSize); messageStoreConfig.setMappedFileSizeConsumeQueueExt(cqExtFileSize); messageStoreConfig.setMessageIndexEnable(false); messageStoreConfig.setEnableConsumeQueueExt(enableCqExt); messageStoreConfig.setStorePathRootDir(storePath); messageStoreConfig.setStorePathCommitLog(storePath + File.separator + "commitlog"); return messageStoreConfig; }
Example 11
Source File: ConsumeQueueTest.java From rocketmq-all-4.1.0-incubating with Apache License 2.0 | 5 votes |
public MessageStoreConfig buildStoreConfig(int commitLogFileSize, int cqFileSize, boolean enableCqExt, int cqExtFileSize) { MessageStoreConfig messageStoreConfig = new MessageStoreConfig(); messageStoreConfig.setMapedFileSizeCommitLog(commitLogFileSize); messageStoreConfig.setMapedFileSizeConsumeQueue(cqFileSize); messageStoreConfig.setMappedFileSizeConsumeQueueExt(cqExtFileSize); messageStoreConfig.setMessageIndexEnable(false); messageStoreConfig.setEnableConsumeQueueExt(enableCqExt); messageStoreConfig.setStorePathRootDir(storePath); messageStoreConfig.setStorePathCommitLog(storePath + File.separator + "commitlog"); return messageStoreConfig; }
Example 12
Source File: MessageStoreWithFilterTest.java From rocketmq with Apache License 2.0 | 5 votes |
public MessageStoreConfig buildStoreConfig(int commitLogFileSize, int cqFileSize, boolean enableCqExt, int cqExtFileSize) { MessageStoreConfig messageStoreConfig = new MessageStoreConfig(); messageStoreConfig.setMappedFileSizeCommitLog(commitLogFileSize); messageStoreConfig.setMappedFileSizeConsumeQueue(cqFileSize); messageStoreConfig.setMappedFileSizeConsumeQueueExt(cqExtFileSize); messageStoreConfig.setMessageIndexEnable(false); messageStoreConfig.setEnableConsumeQueueExt(enableCqExt); messageStoreConfig.setStorePathRootDir(storePath); messageStoreConfig.setStorePathCommitLog(storePath + File.separator + "commitlog"); return messageStoreConfig; }
Example 13
Source File: ConsumeQueueTest.java From rocketmq with Apache License 2.0 | 5 votes |
public MessageStoreConfig buildStoreConfig(int commitLogFileSize, int cqFileSize, boolean enableCqExt, int cqExtFileSize) { MessageStoreConfig messageStoreConfig = new MessageStoreConfig(); messageStoreConfig.setMappedFileSizeCommitLog(commitLogFileSize); messageStoreConfig.setMappedFileSizeConsumeQueue(cqFileSize); messageStoreConfig.setMappedFileSizeConsumeQueueExt(cqExtFileSize); messageStoreConfig.setMessageIndexEnable(false); messageStoreConfig.setEnableConsumeQueueExt(enableCqExt); messageStoreConfig.setStorePathRootDir(storePath); messageStoreConfig.setStorePathCommitLog(storePath + File.separator + "commitlog"); return messageStoreConfig; }