congrats Icon
New! Tabnine Pro 14-day free trial
Start a free trial
Tabnine Logo
JobStoreSupport$MisfireHandler.manage
Code IndexAdd Tabnine to your IDE (free)

How to use
manage
method
in
org.quartz.impl.jdbcjobstore.JobStoreSupport$MisfireHandler

Best Java code snippets using org.quartz.impl.jdbcjobstore.JobStoreSupport$MisfireHandler.manage (Showing top 4 results out of 315)

origin: quartz-scheduler/quartz

  @Override
  public void run() {
    
    while (!shutdown) {
      long sTime = System.currentTimeMillis();
      RecoverMisfiredJobsResult recoverMisfiredJobsResult = manage();
      if (recoverMisfiredJobsResult.getProcessedMisfiredTriggerCount() > 0) {
        signalSchedulingChangeImmediately(recoverMisfiredJobsResult.getEarliestNewTime());
      }
      if (!shutdown) {
        long timeToSleep = 50l;  // At least a short pause to help balance threads
        if (!recoverMisfiredJobsResult.hasMoreMisfiredTriggers()) {
          timeToSleep = getMisfireThreshold() - (System.currentTimeMillis() - sTime);
          if (timeToSleep <= 0) {
            timeToSleep = 50l;
          }
          if(numFails > 0) {
            timeToSleep = Math.max(getDbRetryInterval(), timeToSleep);
          }
        }
        
        try {
          Thread.sleep(timeToSleep);
        } catch (Exception ignore) {
        }
      }//while !shutdown
    }
  }
}
origin: quartz-scheduler/quartz

  @Override
  public void run() {
    
    while (!shutdown) {
      long sTime = System.currentTimeMillis();
      RecoverMisfiredJobsResult recoverMisfiredJobsResult = manage();
      if (recoverMisfiredJobsResult.getProcessedMisfiredTriggerCount() > 0) {
        signalSchedulingChangeImmediately(recoverMisfiredJobsResult.getEarliestNewTime());
      }
      if (!shutdown) {
        long timeToSleep = 50l;  // At least a short pause to help balance threads
        if (!recoverMisfiredJobsResult.hasMoreMisfiredTriggers()) {
          timeToSleep = getMisfireThreshold() - (System.currentTimeMillis() - sTime);
          if (timeToSleep <= 0) {
            timeToSleep = 50l;
          }
          if(numFails > 0) {
            timeToSleep = Math.max(getDbRetryInterval(), timeToSleep);
          }
        }
        
        try {
          Thread.sleep(timeToSleep);
        } catch (Exception ignore) {
        }
      }//while !shutdown
    }
  }
}
origin: quartz/quartz-all

  public void run() {
    
    while (!shutdown) {
      long sTime = System.currentTimeMillis();
      RecoverMisfiredJobsResult recoverMisfiredJobsResult = manage();
      if (recoverMisfiredJobsResult.getProcessedMisfiredTriggerCount() > 0) {
        signalSchedulingChange(recoverMisfiredJobsResult.getEarliestNewTime());
      }
      if (!shutdown) {
        long timeToSleep = 50l;  // At least a short pause to help balance threads
        if (!recoverMisfiredJobsResult.hasMoreMisfiredTriggers()) {
          timeToSleep = getMisfireThreshold() - (System.currentTimeMillis() - sTime);
          if (timeToSleep <= 0) {
            timeToSleep = 50l;
          }
          if(numFails > 0) {
            timeToSleep = Math.max(getDbRetryInterval(), timeToSleep);
          }
        }
        
        try {
          Thread.sleep(timeToSleep);
        } catch (Exception ignore) {
        }
      }//while !shutdown
    }
  }
}
origin: com.opensymphony.quartz/com.springsource.org.quartz

  public void run() {
    
    while (!shutdown) {
      long sTime = System.currentTimeMillis();
      RecoverMisfiredJobsResult recoverMisfiredJobsResult = manage();
      if (recoverMisfiredJobsResult.getProcessedMisfiredTriggerCount() > 0) {
        signalSchedulingChange(recoverMisfiredJobsResult.getEarliestNewTime());
      }
      if (!shutdown) {
        long timeToSleep = 50l;  // At least a short pause to help balance threads
        if (!recoverMisfiredJobsResult.hasMoreMisfiredTriggers()) {
          timeToSleep = getMisfireThreshold() - (System.currentTimeMillis() - sTime);
          if (timeToSleep <= 0) {
            timeToSleep = 50l;
          }
          if(numFails > 0) {
            timeToSleep = Math.max(getDbRetryInterval(), timeToSleep);
          }
        }
        
        try {
          Thread.sleep(timeToSleep);
        } catch (Exception ignore) {
        }
      }//while !shutdown
    }
  }
}
org.quartz.impl.jdbcjobstoreJobStoreSupport$MisfireHandlermanage

Popular methods of JobStoreSupport$MisfireHandler

  • <init>
  • initialize
  • interrupt
  • setContextClassLoader
  • setDaemon
  • setName
  • shutdown
  • join
  • start

Popular in Java

  • Updating database using SQL prepared statement
  • addToBackStack (FragmentTransaction)
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • getExternalFilesDir (Context)
  • Path (java.nio.file)
  • HashMap (java.util)
    HashMap is an implementation of Map. All optional operations are supported.All elements are permitte
  • TimeZone (java.util)
    TimeZone represents a time zone offset, and also figures out daylight savings. Typically, you get a
  • ReentrantLock (java.util.concurrent.locks)
    A reentrant mutual exclusion Lock with the same basic behavior and semantics as the implicit monitor
  • JComboBox (javax.swing)
  • BasicDataSource (org.apache.commons.dbcp)
    Basic implementation of javax.sql.DataSource that is configured via JavaBeans properties. This is no
  • Top 17 Free Sublime Text Plugins
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