Tabnine Logo
CommitLog.removeQueueFromTopicQueueTable
Code IndexAdd Tabnine to your IDE (free)

How to use
removeQueueFromTopicQueueTable
method
in
org.apache.rocketmq.store.CommitLog

Best Java code snippets using org.apache.rocketmq.store.CommitLog.removeQueueFromTopicQueueTable (Showing top 6 results out of 315)

origin: apache/rocketmq

@Override
public int cleanUnusedTopic(Set<String> topics) {
  Iterator<Entry<String, ConcurrentMap<Integer, ConsumeQueue>>> it = this.consumeQueueTable.entrySet().iterator();
  while (it.hasNext()) {
    Entry<String, ConcurrentMap<Integer, ConsumeQueue>> next = it.next();
    String topic = next.getKey();
    if (!topics.contains(topic) && !topic.equals(ScheduleMessageService.SCHEDULE_TOPIC)) {
      ConcurrentMap<Integer, ConsumeQueue> queueTable = next.getValue();
      for (ConsumeQueue cq : queueTable.values()) {
        cq.destroy();
        log.info("cleanUnusedTopic: {} {} ConsumeQueue cleaned",
          cq.getTopic(),
          cq.getQueueId()
        );
        this.commitLog.removeQueueFromTopicQueueTable(cq.getTopic(), cq.getQueueId());
      }
      it.remove();
      log.info("cleanUnusedTopic: {},topic destroyed", topic);
    }
  }
  return 0;
}
origin: apache/rocketmq

  maxCLOffsetInConsumeQueue);
DefaultMessageStore.this.commitLog.removeQueueFromTopicQueueTable(nextQT.getValue().getTopic(),
  nextQT.getValue().getQueueId());
origin: didi/DDMQ

@Override
public int cleanUnusedTopic(Set<String> topics) {
  Iterator<Entry<String, ConcurrentMap<Integer, ConsumeQueue>>> it = this.consumeQueueTable.entrySet().iterator();
  while (it.hasNext()) {
    Entry<String, ConcurrentMap<Integer, ConsumeQueue>> next = it.next();
    String topic = next.getKey();
    if (!topics.contains(topic) && !topic.equals(ScheduleMessageService.SCHEDULE_TOPIC)) {
      ConcurrentMap<Integer, ConsumeQueue> queueTable = next.getValue();
      for (ConsumeQueue cq : queueTable.values()) {
        cq.destroy();
        log.info("cleanUnusedTopic: {} {} ConsumeQueue cleaned",
          cq.getTopic(),
          cq.getQueueId()
        );
        this.commitLog.removeQueueFromTopicQueueTable(cq.getTopic(), cq.getQueueId());
      }
      it.remove();
      log.info("cleanUnusedTopic: {},topic destroyed", topic);
    }
  }
  return 0;
}
origin: didi/DDMQ

  maxCLOffsetInConsumeQueue);
DefaultMessageStore.this.commitLog.removeQueueFromTopicQueueTable(nextQT.getValue().getTopic(),
  nextQT.getValue().getQueueId());
origin: org.apache.rocketmq/rocketmq-store

@Override
public int cleanUnusedTopic(Set<String> topics) {
  Iterator<Entry<String, ConcurrentMap<Integer, ConsumeQueue>>> it = this.consumeQueueTable.entrySet().iterator();
  while (it.hasNext()) {
    Entry<String, ConcurrentMap<Integer, ConsumeQueue>> next = it.next();
    String topic = next.getKey();
    if (!topics.contains(topic) && !topic.equals(ScheduleMessageService.SCHEDULE_TOPIC)) {
      ConcurrentMap<Integer, ConsumeQueue> queueTable = next.getValue();
      for (ConsumeQueue cq : queueTable.values()) {
        cq.destroy();
        log.info("cleanUnusedTopic: {} {} ConsumeQueue cleaned",
          cq.getTopic(),
          cq.getQueueId()
        );
        this.commitLog.removeQueueFromTopicQueueTable(cq.getTopic(), cq.getQueueId());
      }
      it.remove();
      log.info("cleanUnusedTopic: {},topic destroyed", topic);
    }
  }
  return 0;
}
origin: org.apache.rocketmq/rocketmq-store

  maxCLOffsetInConsumeQueue);
DefaultMessageStore.this.commitLog.removeQueueFromTopicQueueTable(nextQT.getValue().getTopic(),
  nextQT.getValue().getQueueId());
org.apache.rocketmq.storeCommitLogremoveQueueFromTopicQueueTable

Popular methods of CommitLog

  • <init>
  • appendData
  • calMsgLength
  • checkMessageAndReturnSize
    check the message and returns the message size
  • checkSelf
  • deleteExpiredFile
  • destroy
  • doNothingForDeadCode
  • flush
  • getBeginTimeInLock
  • getConfirmOffset
  • getData
  • getConfirmOffset,
  • getData,
  • getMaxOffset,
  • getMessage,
  • getMinOffset,
  • handleDiskFlush,
  • handleHA,
  • isMappedFileMatchedRecover,
  • load,
  • lockTimeMills

Popular in Java

  • Creating JSON documents from java classes using gson
  • scheduleAtFixedRate (Timer)
  • onCreateOptionsMenu (Activity)
  • putExtra (Intent)
  • ArrayList (java.util)
    ArrayList is an implementation of List, backed by an array. All optional operations including adding
  • List (java.util)
    An ordered collection (also known as a sequence). The user of this interface has precise control ove
  • TimeZone (java.util)
    TimeZone represents a time zone offset, and also figures out daylight savings. Typically, you get a
  • UUID (java.util)
    UUID is an immutable representation of a 128-bit universally unique identifier (UUID). There are mul
  • JTextField (javax.swing)
  • IsNull (org.hamcrest.core)
    Is the value null?
  • CodeWhisperer alternatives
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now