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

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

Best Java code snippets using org.apache.rocketmq.store.CommitLog.rollNextFile (Showing top 9 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

public long getMinOffset() {
  MappedFile mappedFile = this.mappedFileQueue.getFirstMappedFile();
  if (mappedFile != null) {
    if (mappedFile.isAvailable()) {
      return mappedFile.getFileFromOffset();
    } else {
      return this.rollNextFile(mappedFile.getFileFromOffset());
    }
  }
  return -1;
}
origin: apache/rocketmq

nextPhyFileStartOffset = this.commitLog.rollNextFile(offsetPy);
continue;
origin: apache/rocketmq

this.reputFromOffset = DefaultMessageStore.this.commitLog.rollNextFile(this.reputFromOffset);
readSize = result.getSize();
origin: didi/DDMQ

public long getMinOffset() {
  MappedFile mappedFile = this.mappedFileQueue.getFirstMappedFile();
  if (mappedFile != null) {
    if (mappedFile.isAvailable()) {
      return mappedFile.getFileFromOffset();
    } else {
      return this.rollNextFile(mappedFile.getFileFromOffset());
    }
  }
  return -1;
}
origin: didi/DDMQ

nextPhyFileStartOffset = this.commitLog.rollNextFile(offsetPy);
continue;
origin: didi/DDMQ

this.reputFromOffset = DefaultMessageStore.this.commitLog.rollNextFile(this.reputFromOffset);
readSize = result.getSize();
origin: org.apache.rocketmq/rocketmq-store

public long getMinOffset() {
  MappedFile mappedFile = this.mappedFileQueue.getFirstMappedFile();
  if (mappedFile != null) {
    if (mappedFile.isAvailable()) {
      return mappedFile.getFileFromOffset();
    } else {
      return this.rollNextFile(mappedFile.getFileFromOffset());
    }
  }
  return -1;
}
origin: org.apache.rocketmq/rocketmq-store

nextPhyFileStartOffset = this.commitLog.rollNextFile(offsetPy);
continue;
origin: org.apache.rocketmq/rocketmq-store

this.reputFromOffset = DefaultMessageStore.this.commitLog.rollNextFile(this.reputFromOffset);
readSize = result.getSize();
org.apache.rocketmq.storeCommitLogrollNextFile

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

  • Running tasks concurrently on multiple threads
  • findViewById (Activity)
  • setRequestProperty (URLConnection)
  • setContentView (Activity)
  • VirtualMachine (com.sun.tools.attach)
    A Java virtual machine. A VirtualMachine represents a Java virtual machine to which this Java vir
  • URLConnection (java.net)
    The abstract class URLConnection is the superclass of all classes that represent a communications li
  • Map (java.util)
    A Map is a data structure consisting of a set of keys and values in which each key is mapped to a si
  • Random (java.util)
    This class provides methods that return pseudo-random values.It is dangerous to seed Random with the
  • ZipFile (java.util.zip)
    This class provides random read access to a zip file. You pay more to read the zip file's central di
  • SSLHandshakeException (javax.net.ssl)
    The exception that is thrown when a handshake could not be completed successfully.
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