congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo
CommitLog.appendData
Code IndexAdd Tabnine to your IDE (free)

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

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

origin: apache/rocketmq

@Override
public boolean appendToCommitLog(long startOffset, byte[] data) {
  if (this.shutdown) {
    log.warn("message store has shutdown, so appendToPhyQueue is forbidden");
    return false;
  }
  boolean result = this.commitLog.appendData(startOffset, data);
  if (result) {
    this.reputMessageService.wakeup();
  } else {
    log.error("appendToPhyQueue failed " + startOffset + " " + data.length);
  }
  return result;
}
origin: didi/DDMQ

@Override
public boolean appendToCommitLog(long startOffset, byte[] data) {
  if (this.shutdown) {
    log.warn("message store has shutdown, so appendToPhyQueue is forbidden");
    return false;
  }
  boolean result = this.commitLog.appendData(startOffset, data);
  if (result) {
    this.reputMessageService.wakeup();
  } else {
    log.error("appendToPhyQueue failed " + startOffset + " " + data.length);
  }
  return result;
}
origin: org.apache.rocketmq/rocketmq-store

@Override
public boolean appendToCommitLog(long startOffset, byte[] data) {
  if (this.shutdown) {
    log.warn("message store has shutdown, so appendToPhyQueue is forbidden");
    return false;
  }
  boolean result = this.commitLog.appendData(startOffset, data);
  if (result) {
    this.reputMessageService.wakeup();
  } else {
    log.error("appendToPhyQueue failed " + startOffset + " " + data.length);
  }
  return result;
}
org.apache.rocketmq.storeCommitLogappendData

Popular methods of CommitLog

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

Popular in Java

  • Running tasks concurrently on multiple threads
  • onRequestPermissionsResult (Fragment)
  • getResourceAsStream (ClassLoader)
  • findViewById (Activity)
  • BorderLayout (java.awt)
    A border layout lays out a container, arranging and resizing its components to fit in five regions:
  • FileReader (java.io)
    A specialized Reader that reads from a file in the file system. All read requests made by calling me
  • BigDecimal (java.math)
    An immutable arbitrary-precision signed decimal.A value is represented by an arbitrary-precision "un
  • ExecutorService (java.util.concurrent)
    An Executor that provides methods to manage termination and methods that can produce a Future for tr
  • Project (org.apache.tools.ant)
    Central representation of an Ant project. This class defines an Ant project with all of its targets,
  • Runner (org.openjdk.jmh.runner)
  • Best IntelliJ plugins
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