Codota Logo
CalendarIntervalTriggerImpl.isSkipDayIfHourDoesNotExist
Code IndexAdd Codota to your IDE (free)

How to use
isSkipDayIfHourDoesNotExist
method
in
org.quartz.impl.triggers.CalendarIntervalTriggerImpl

Best Java code snippets using org.quartz.impl.triggers.CalendarIntervalTriggerImpl.isSkipDayIfHourDoesNotExist (Showing top 4 results out of 315)

  • Common ways to obtain CalendarIntervalTriggerImpl
private void myMethod () {
CalendarIntervalTriggerImpl c =
  • Codota Iconnew CalendarIntervalTriggerImpl()
  • Smart code suggestions by Codota
}
origin: quartz-scheduler/quartz

private boolean daylightSavingHourShiftOccurredAndAdvanceNeeded(Calendar newTime, int initialHourOfDay, Date afterTime) {
  if(isPreserveHourOfDayAcrossDaylightSavings() && newTime.get(Calendar.HOUR_OF_DAY) != initialHourOfDay) {
    newTime.set(Calendar.HOUR_OF_DAY, initialHourOfDay);
    if (newTime.get(Calendar.HOUR_OF_DAY) != initialHourOfDay) {
      return isSkipDayIfHourDoesNotExist();
    } else {
      return !newTime.getTime().after(afterTime);
    }
  }
  return false;
}

origin: quartz-scheduler/quartz

private boolean daylightSavingHourShiftOccurredAndAdvanceNeeded(Calendar newTime, int initialHourOfDay, Date afterTime) {
  if(isPreserveHourOfDayAcrossDaylightSavings() && newTime.get(Calendar.HOUR_OF_DAY) != initialHourOfDay) {
    newTime.set(Calendar.HOUR_OF_DAY, initialHourOfDay);
    if (newTime.get(Calendar.HOUR_OF_DAY) != initialHourOfDay) {
      return isSkipDayIfHourDoesNotExist();
    } else {
      return !newTime.getTime().after(afterTime);
    }
  }
  return false;
}

origin: quartz-scheduler/quartz

@Override
protected SimplePropertiesTriggerProperties getTriggerProperties(OperableTrigger trigger) {
  CalendarIntervalTriggerImpl calTrig = (CalendarIntervalTriggerImpl)trigger;
  
  SimplePropertiesTriggerProperties props = new SimplePropertiesTriggerProperties();
  
  props.setInt1(calTrig.getRepeatInterval());
  props.setString1(calTrig.getRepeatIntervalUnit().name());
  props.setInt2(calTrig.getTimesTriggered());
  props.setString2(calTrig.getTimeZone().getID());
  props.setBoolean1(calTrig.isPreserveHourOfDayAcrossDaylightSavings());
  props.setBoolean2(calTrig.isSkipDayIfHourDoesNotExist());
  
  return props;
}
origin: quartz-scheduler/quartz

@Override
protected SimplePropertiesTriggerProperties getTriggerProperties(OperableTrigger trigger) {
  CalendarIntervalTriggerImpl calTrig = (CalendarIntervalTriggerImpl)trigger;
  
  SimplePropertiesTriggerProperties props = new SimplePropertiesTriggerProperties();
  
  props.setInt1(calTrig.getRepeatInterval());
  props.setString1(calTrig.getRepeatIntervalUnit().name());
  props.setInt2(calTrig.getTimesTriggered());
  props.setString2(calTrig.getTimeZone().getID());
  props.setBoolean1(calTrig.isPreserveHourOfDayAcrossDaylightSavings());
  props.setBoolean2(calTrig.isSkipDayIfHourDoesNotExist());
  
  return props;
}
org.quartz.impl.triggersCalendarIntervalTriggerImplisSkipDayIfHourDoesNotExist

Javadoc

If intervals are a day or greater, and preserveHourOfDayAcrossDaylightSavings property is set to true, and the hour of the day does not exist on a given day for which the trigger would fire, the day will be skipped and the trigger advanced a second interval if this property is set to true. Defaults to false.

CAUTION! If you enable this property, and your hour of day happens to be that of daylight savings transition (e.g. 2:00 am in the United States) and the trigger's interval would have had the trigger fire on that day, then you may actually completely miss a firing on the day of transition if that hour of day does not exist on that day! In such a case the next fire time of the trigger will be computed as double (if the interval is 2 days, then a span of 4 days between firings will occur).

Popular methods of CalendarIntervalTriggerImpl

  • <init>
    Create a DateIntervalTrigger that will occur immediately, and repeat at the the given interval.
  • getRepeatInterval
  • getRepeatIntervalUnit
  • getTimeZone
  • getTimesTriggered
  • setRepeatInterval
  • setRepeatIntervalUnit
  • setTimeZone
  • daylightSavingHourShiftOccurredAndAdvanceNeeded
  • getEndTime
    Get the time at which the DateIntervalTrigger should quit repeating.
  • getFireTimeAfter
  • getMisfireInstruction
  • getFireTimeAfter,
  • getMisfireInstruction,
  • getNextFireTime,
  • getStartTime,
  • hasAdditionalProperties,
  • isPreserveHourOfDayAcrossDaylightSavings,
  • setEndTime,
  • setMisfireInstruction,
  • setNextFireTime

Popular in Java

  • Start an intent from android
  • runOnUiThread (Activity)
  • startActivity (Activity)
  • putExtra (Intent)
  • Component (java.awt)
    A component is an object having a graphical representation that can be displayed on the screen and t
  • Runnable (java.lang)
    Represents a command that can be executed. Often used to run code in a different Thread.
  • MalformedURLException (java.net)
    Thrown to indicate that a malformed URL has occurred. Either no legal protocol could be found in a s
  • JFileChooser (javax.swing)
  • JFrame (javax.swing)
  • Location (org.springframework.beans.factory.parsing)
    Class that models an arbitrary location in a Resource.Typically used to track the location of proble
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