Class RollingCalendar

java.lang.Object
java.util.Calendar
java.util.GregorianCalendar
ch.qos.logback.core.rolling.helper.RollingCalendar
All Implemented Interfaces:
Serializable, Cloneable, Comparable<Calendar>

@Deprecated(since="2022-01-27") public class RollingCalendar extends 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:
  • Constructor Details

    • RollingCalendar

      public RollingCalendar(String datePattern)
      Deprecated.
    • RollingCalendar

      public RollingCalendar(String datePattern, TimeZone tz, Locale locale)
      Deprecated.
  • Method Details

    • 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 Date getEndOfNextNthPeriod(Date now, int periods)
      Deprecated.
    • getNextTriggeringDate

      public Date getNextTriggeringDate(Date now)
      Deprecated.
    • getStartOfCurrentPeriodWithGMTOffsetCorrection

      public long getStartOfCurrentPeriodWithGMTOffsetCorrection(long now, TimeZone timezone)
      Deprecated.