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

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

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

origin: apache/rocketmq

private void redeleteHangedFile() {
  int interval = DefaultMessageStore.this.getMessageStoreConfig().getRedeleteHangedFileInterval();
  long currentTimestamp = System.currentTimeMillis();
  if ((currentTimestamp - this.lastRedeleteTimestamp) > interval) {
    this.lastRedeleteTimestamp = currentTimestamp;
    int destroyMapedFileIntervalForcibly =
      DefaultMessageStore.this.getMessageStoreConfig().getDestroyMapedFileIntervalForcibly();
    if (DefaultMessageStore.this.commitLog.retryDeleteFirstFile(destroyMapedFileIntervalForcibly)) {
    }
  }
}
origin: didi/DDMQ

private void redeleteHangedFile() {
  int interval = DefaultMessageStore.this.getMessageStoreConfig().getRedeleteHangedFileInterval();
  long currentTimestamp = System.currentTimeMillis();
  if ((currentTimestamp - this.lastRedeleteTimestamp) > interval) {
    this.lastRedeleteTimestamp = currentTimestamp;
    int destroyMapedFileIntervalForcibly =
      DefaultMessageStore.this.getMessageStoreConfig().getDestroyMapedFileIntervalForcibly();
    if (DefaultMessageStore.this.commitLog.retryDeleteFirstFile(destroyMapedFileIntervalForcibly)) {
    }
  }
}
origin: org.apache.rocketmq/rocketmq-store

private void redeleteHangedFile() {
  int interval = DefaultMessageStore.this.getMessageStoreConfig().getRedeleteHangedFileInterval();
  long currentTimestamp = System.currentTimeMillis();
  if ((currentTimestamp - this.lastRedeleteTimestamp) > interval) {
    this.lastRedeleteTimestamp = currentTimestamp;
    int destroyMapedFileIntervalForcibly =
      DefaultMessageStore.this.getMessageStoreConfig().getDestroyMapedFileIntervalForcibly();
    if (DefaultMessageStore.this.commitLog.retryDeleteFirstFile(destroyMapedFileIntervalForcibly)) {
    }
  }
}
org.apache.rocketmq.storeCommitLogretryDeleteFirstFile

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

  • Parsing JSON documents to java classes using gson
  • getExternalFilesDir (Context)
  • runOnUiThread (Activity)
  • onCreateOptionsMenu (Activity)
  • ObjectMapper (com.fasterxml.jackson.databind)
    ObjectMapper provides functionality for reading and writing JSON, either to and from basic POJOs (Pl
  • Permission (java.security)
    Legacy security code; do not use.
  • ArrayList (java.util)
    ArrayList is an implementation of List, backed by an array. All optional operations including adding
  • GregorianCalendar (java.util)
    GregorianCalendar is a concrete subclass of Calendarand provides the standard calendar used by most
  • PriorityQueue (java.util)
    A PriorityQueue holds elements on a priority heap, which orders the elements according to their natu
  • JOptionPane (javax.swing)
  • Top plugins for WebStorm
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