Class RollingCalendar

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Cloneable, java.lang.Comparable<java.util.Calendar>

    @Deprecated(since="2022-01-27")
    public class RollingCalendar
    extends java.util.GregorianCalendar
    Deprecated.
    This internal logback API is not supported by AEM as a Cloud Service.
    RollingCalendar is a helper class to TimeBasedRollingPolicy or similar timed-based rolling policies. Given a periodicity type and the current time, it computes the start of the next interval (i.e. the triggering date).
    See Also:
    Serialized Form
    • Nested Class Summary

      • Nested classes/interfaces inherited from class java.util.Calendar

        java.util.Calendar.Builder
    • Field Summary

      • Fields inherited from class java.util.GregorianCalendar

        AD, BC
      • Fields inherited from class java.util.Calendar

        ALL_STYLES, AM, AM_PM, APRIL, AUGUST, DATE, DAY_OF_MONTH, DAY_OF_WEEK, DAY_OF_WEEK_IN_MONTH, DAY_OF_YEAR, DECEMBER, DST_OFFSET, ERA, FEBRUARY, FIELD_COUNT, FRIDAY, HOUR, HOUR_OF_DAY, JANUARY, JULY, JUNE, LONG, LONG_FORMAT, LONG_STANDALONE, MARCH, MAY, MILLISECOND, MINUTE, MONDAY, MONTH, NARROW_FORMAT, NARROW_STANDALONE, NOVEMBER, OCTOBER, PM, SATURDAY, SECOND, SEPTEMBER, SHORT, SHORT_FORMAT, SHORT_STANDALONE, SUNDAY, THURSDAY, TUESDAY, UNDECIMBER, WEDNESDAY, WEEK_OF_MONTH, WEEK_OF_YEAR, YEAR, ZONE_OFFSET
    • Constructor Summary

      Constructors 
      Constructor Description
      RollingCalendar​(java.lang.String datePattern)
      Deprecated.
       
      RollingCalendar​(java.lang.String datePattern, java.util.TimeZone tz, java.util.Locale locale)
      Deprecated.
       
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods 
      Modifier and Type Method Description
      PeriodicityType computePeriodicityType()
      Deprecated.
       
      static int diffInMonths​(long startTime, long endTime)
      Deprecated.
       
      java.util.Date getEndOfNextNthPeriod​(java.util.Date now, int periods)
      Deprecated.
       
      java.util.Date getNextTriggeringDate​(java.util.Date now)
      Deprecated.
       
      PeriodicityType getPeriodicityType()
      Deprecated.
       
      long getStartOfCurrentPeriodWithGMTOffsetCorrection​(long now, java.util.TimeZone timezone)
      Deprecated.
       
      boolean isCollisionFree()
      Deprecated.
       
      long periodBarriersCrossed​(long start, long end)
      Deprecated.
       
      void printPeriodicity​(ContextAwareBase cab)
      Deprecated.
       
      • Methods inherited from class java.util.GregorianCalendar

        add, clone, equals, from, getActualMaximum, getActualMinimum, getCalendarType, getGreatestMinimum, getGregorianChange, getLeastMaximum, getMaximum, getMinimum, getTimeZone, getWeeksInWeekYear, getWeekYear, hashCode, isLeapYear, isWeekDateSupported, roll, roll, setGregorianChange, setTimeZone, setWeekDate, toZonedDateTime
      • Methods inherited from class java.util.Calendar

        after, before, clear, clear, compareTo, get, getAvailableCalendarTypes, getAvailableLocales, getDisplayName, getDisplayNames, getFirstDayOfWeek, getInstance, getInstance, getInstance, getInstance, getMinimalDaysInFirstWeek, getTime, getTimeInMillis, isLenient, isSet, set, set, set, set, setFirstDayOfWeek, setLenient, setMinimalDaysInFirstWeek, setTime, setTimeInMillis, toInstant, toString
      • Methods inherited from class java.lang.Object

        getClass, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • RollingCalendar

        public RollingCalendar​(java.lang.String datePattern)
        Deprecated.
      • RollingCalendar

        public RollingCalendar​(java.lang.String datePattern,
                               java.util.TimeZone tz,
                               java.util.Locale locale)
        Deprecated.
    • Method Detail

      • getPeriodicityType

        public PeriodicityType getPeriodicityType()
        Deprecated.
      • computePeriodicityType

        public PeriodicityType computePeriodicityType()
        Deprecated.
      • isCollisionFree

        public boolean isCollisionFree()
        Deprecated.
      • printPeriodicity

        public void printPeriodicity​(ContextAwareBase cab)
        Deprecated.
      • periodBarriersCrossed

        public long periodBarriersCrossed​(long start,
                                          long end)
        Deprecated.
      • diffInMonths

        public static int diffInMonths​(long startTime,
                                       long endTime)
        Deprecated.
      • getEndOfNextNthPeriod

        public java.util.Date getEndOfNextNthPeriod​(java.util.Date now,
                                                    int periods)
        Deprecated.
      • getNextTriggeringDate

        public java.util.Date getNextTriggeringDate​(java.util.Date now)
        Deprecated.
      • getStartOfCurrentPeriodWithGMTOffsetCorrection

        public long getStartOfCurrentPeriodWithGMTOffsetCorrection​(long now,
                                                                   java.util.TimeZone timezone)
        Deprecated.