Codota Logo
CommitLog.setTopicQueueTable
Code IndexAdd Codota to your IDE (free)

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

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

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
SimpleDateFormat s =
  • Codota IconString pattern;new SimpleDateFormat(pattern)
  • Codota IconString template;Locale locale;new SimpleDateFormat(template, locale)
  • Codota Iconnew SimpleDateFormat()
  • Smart code suggestions by Codota
}
origin: apache/rocketmq

private void recoverTopicQueueTable() {
  HashMap<String/* topic-queueid */, Long/* offset */> table = new HashMap<String, Long>(1024);
  long minPhyOffset = this.commitLog.getMinOffset();
  for (ConcurrentMap<Integer, ConsumeQueue> maps : this.consumeQueueTable.values()) {
    for (ConsumeQueue logic : maps.values()) {
      String key = logic.getTopic() + "-" + logic.getQueueId();
      table.put(key, logic.getMaxOffsetInQueue());
      logic.correctMinOffset(minPhyOffset);
    }
  }
  this.commitLog.setTopicQueueTable(table);
}
origin: didi/DDMQ

private void recoverTopicQueueTable() {
  ConcurrentHashMap<String/* topic-queueid */, Long/* offset */> table = new ConcurrentHashMap<String, Long>(1024);
  long minPhyOffset = this.commitLog.getMinOffset();
  for (ConcurrentMap<Integer, ConsumeQueue> maps : this.consumeQueueTable.values()) {
    for (ConsumeQueue logic : maps.values()) {
      String key = logic.getTopic() + "-" + logic.getQueueId();
      table.put(key, logic.getMaxOffsetInQueue());
      logic.correctMinOffset(minPhyOffset);
    }
  }
  this.commitLog.setTopicQueueTable(table);
}
origin: org.apache.rocketmq/rocketmq-store

private void recoverTopicQueueTable() {
  HashMap<String/* topic-queueid */, Long/* offset */> table = new HashMap<String, Long>(1024);
  long minPhyOffset = this.commitLog.getMinOffset();
  for (ConcurrentMap<Integer, ConsumeQueue> maps : this.consumeQueueTable.values()) {
    for (ConsumeQueue logic : maps.values()) {
      String key = logic.getTopic() + "-" + logic.getQueueId();
      table.put(key, logic.getMaxOffsetInQueue());
      logic.correctMinOffset(minPhyOffset);
    }
  }
  this.commitLog.setTopicQueueTable(table);
}
org.apache.rocketmq.storeCommitLogsetTopicQueueTable

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

  • Reading from database using SQL prepared statement
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • startActivity (Activity)
  • orElseThrow (Optional)
  • BufferedReader (java.io)
    Reads text from a character-input stream, buffering characters so as to provide for the efficient re
  • ThreadPoolExecutor (java.util.concurrent)
    An ExecutorService that executes each submitted task using one of possibly several pooled threads, n
  • TimeUnit (java.util.concurrent)
    A TimeUnit represents time durations at a given unit of granularity and provides utility methods to
  • BoxLayout (javax.swing)
  • JPanel (javax.swing)
  • Join (org.hibernate.mapping)
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now