Codota Logo
NthIncludedDayTrigger.mayFireAgain
Code IndexAdd Codota to your IDE (free)

How to use
mayFireAgain
method
in
org.quartz.NthIncludedDayTrigger

Best Java code snippets using org.quartz.NthIncludedDayTrigger.mayFireAgain (Showing top 2 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
Charset c =
  • Codota IconString charsetName;Charset.forName(charsetName)
  • Codota IconCharset.defaultCharset()
  • Codota IconContentType contentType;contentType.getCharset()
  • Smart code suggestions by Codota
}
origin: com.opensymphony.quartz/com.springsource.org.quartz

/**
* Called after the <CODE>Scheduler</CODE> has executed the 
* <code>JobDetail</CODE> associated with the <CODE>Trigger</CODE> in order
* to get the final instruction code from the trigger.
* 
* @param jobCtx the <CODE>JobExecutionContext</CODE> that was used by the
*               <CODE>Job</CODE>'s <CODE>execute()</CODE> method.
* @param result the <CODE>JobExecutionException</CODE> thrown by the
*               <CODE>Job</CODE>, if any (may be <CODE>null</CODE>)
* @return one of the Trigger.INSTRUCTION_XXX constants.
*/
public int executionComplete(JobExecutionContext jobCtx,
  JobExecutionException result) {
  if (result != null && result.refireImmediately()) {
    return INSTRUCTION_RE_EXECUTE_JOB;
  }
  if (result != null && result.unscheduleFiringTrigger()) {
    return INSTRUCTION_SET_TRIGGER_COMPLETE;
  }

  if (result != null && result.unscheduleAllTriggers()) {
    return INSTRUCTION_SET_ALL_JOB_TRIGGERS_COMPLETE;
  }

  if (!mayFireAgain()) {
    return INSTRUCTION_DELETE_TRIGGER;
  }

  return INSTRUCTION_NOOP;
}
origin: quartz/quartz-all

/**
* Called after the <CODE>Scheduler</CODE> has executed the 
* <code>JobDetail</CODE> associated with the <CODE>Trigger</CODE> in order
* to get the final instruction code from the trigger.
* 
* @param jobCtx the <CODE>JobExecutionContext</CODE> that was used by the
*               <CODE>Job</CODE>'s <CODE>execute()</CODE> method.
* @param result the <CODE>JobExecutionException</CODE> thrown by the
*               <CODE>Job</CODE>, if any (may be <CODE>null</CODE>)
* @return one of the Trigger.INSTRUCTION_XXX constants.
*/
public int executionComplete(JobExecutionContext jobCtx,
  JobExecutionException result) {
  if (result != null && result.refireImmediately()) {
    return INSTRUCTION_RE_EXECUTE_JOB;
  }
  if (result != null && result.unscheduleFiringTrigger()) {
    return INSTRUCTION_SET_TRIGGER_COMPLETE;
  }

  if (result != null && result.unscheduleAllTriggers()) {
    return INSTRUCTION_SET_ALL_JOB_TRIGGERS_COMPLETE;
  }

  if (!mayFireAgain()) {
    return INSTRUCTION_DELETE_TRIGGER;
  }

  return INSTRUCTION_NOOP;
}
org.quartzNthIncludedDayTriggermayFireAgain

Javadoc

Used by the Scheduler to determine whether or not it is possible for this Trigger to fire again.

If the returned value is false then the Scheduler may remove the Trigger from the JobStore

Popular methods of NthIncludedDayTrigger

  • getFireTimeAfter
    Returns the first time the NthIncludedDayTrigger will fire after the specified date. Because of the
  • getMisfireInstruction
  • getMonthlyFireTimeAfter
    Calculates the first time an NthIncludedDayTrigger withintervalType = #INTERVAL_TYPE_MONTHLY will fi
  • getNextFireTime
    Returns the next time at which the NthIncludedDayTrigger will fire. If the trigger will not fire aga
  • getTimeZone
    Gets the time zone in which the fireAtTime will be resolved. If no time zone was explicitly set, the
  • getWeeklyFireTimeAfter
    Calculates the first time an NthIncludedDayTrigger withintervalType = #INTERVAL_TYPE_WEEKLY will fir
  • getYearlyFireTimeAfter
    Calculates the first time an NthIncludedDayTrigger withintervalType = #INTERVAL_TYPE_YEARLY will fir

Popular in Java

  • Reading from database using SQL prepared statement
  • findViewById (Activity)
  • getSharedPreferences (Context)
  • addToBackStack (FragmentTransaction)
  • SocketTimeoutException (java.net)
    This exception is thrown when a timeout expired on a socket read or accept operation.
  • Timestamp (java.sql)
    A Java representation of the SQL TIMESTAMP type. It provides the capability of representing the SQL
  • Properties (java.util)
    The Properties class represents a persistent set of properties. The Properties can be saved to a st
  • Pattern (java.util.regex)
    A compiled representation of a regular expression. A regular expression, specified as a string, must
  • JComboBox (javax.swing)
  • Options (org.apache.commons.cli)
    Main entry-point into the library. Options represents a collection of Option objects, which describ
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