congrats Icon
New! Tabnine Pro 14-day free trial
Start a free trial
Tabnine Logo
ConsumeQueueExt$CqExtUnit.getSize
Code IndexAdd Tabnine to your IDE (free)

How to use
getSize
method
in
org.apache.rocketmq.store.ConsumeQueueExt$CqExtUnit

Best Java code snippets using org.apache.rocketmq.store.ConsumeQueueExt$CqExtUnit.getSize (Showing top 6 results out of 315)

origin: apache/rocketmq

if (extUnit.getSize() > 0) {
  mappedFileOffset += extUnit.getSize();
  continue;
origin: didi/DDMQ

/**
 * Delete files after {@code maxAddress}, and reset wrote/commit/flush position to last file.
 *
 * @param maxAddress less than 0
 */
public void truncateByMaxAddress(final long maxAddress) {
  if (!isExtAddr(maxAddress)) {
    return;
  }
  log.info("Truncate consume queue ext by max {}.", maxAddress);
  CqExtUnit cqExtUnit = get(maxAddress);
  if (cqExtUnit == null) {
    log.error("[BUG] address {} of consume queue extend not found!", maxAddress);
    return;
  }
  final long realOffset = unDecorate(maxAddress);
  this.mappedFileQueue.truncateDirtyFiles(realOffset + cqExtUnit.getSize());
}
origin: didi/DDMQ

if (extUnit.getSize() > 0) {
  mappedFileOffset += extUnit.getSize();
  continue;
origin: org.apache.rocketmq/rocketmq-store

if (extUnit.getSize() > 0) {
  mappedFileOffset += extUnit.getSize();
  continue;
origin: org.apache.rocketmq/rocketmq-store

/**
 * Delete files after {@code maxAddress}, and reset wrote/commit/flush position to last file.
 *
 * @param maxAddress less than 0
 */
public void truncateByMaxAddress(final long maxAddress) {
  if (!isExtAddr(maxAddress)) {
    return;
  }
  log.info("Truncate consume queue ext by max {}.", maxAddress);
  CqExtUnit cqExtUnit = get(maxAddress);
  if (cqExtUnit == null) {
    log.error("[BUG] address {} of consume queue extend not found!", maxAddress);
    return;
  }
  final long realOffset = unDecorate(maxAddress);
  this.mappedFileQueue.truncateDirtyFiles(realOffset + cqExtUnit.getSize());
}
origin: apache/rocketmq

/**
 * Delete files after {@code maxAddress}, and reset wrote/commit/flush position to last file.
 *
 * @param maxAddress less than 0
 */
public void truncateByMaxAddress(final long maxAddress) {
  if (!isExtAddr(maxAddress)) {
    return;
  }
  log.info("Truncate consume queue ext by max {}.", maxAddress);
  CqExtUnit cqExtUnit = get(maxAddress);
  if (cqExtUnit == null) {
    log.error("[BUG] address {} of consume queue extend not found!", maxAddress);
    return;
  }
  final long realOffset = unDecorate(maxAddress);
  this.mappedFileQueue.truncateDirtyFiles(realOffset + cqExtUnit.getSize());
}
org.apache.rocketmq.storeConsumeQueueExt$CqExtUnitgetSize

Popular methods of ConsumeQueueExt$CqExtUnit

  • <init>
  • getTagsCode
  • getFilterBitMap
  • getMsgStoreTime
  • setFilterBitMap
  • setMsgStoreTime
  • setTagsCode

Popular in Java

  • Parsing JSON documents to java classes using gson
  • runOnUiThread (Activity)
  • getSharedPreferences (Context)
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • File (java.io)
    An "abstract" representation of a file system entity identified by a pathname. The pathname may be a
  • Proxy (java.net)
    This class represents proxy server settings. A created instance of Proxy stores a type and an addres
  • URLConnection (java.net)
    A connection to a URL for reading or writing. For HTTP connections, see HttpURLConnection for docume
  • MessageFormat (java.text)
    Produces concatenated messages in language-neutral way. New code should probably use java.util.Forma
  • NoSuchElementException (java.util)
    Thrown when trying to retrieve an element past the end of an Enumeration or Iterator.
  • JTextField (javax.swing)
  • Top 12 Jupyter Notebook Extensions
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

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