Class TimeBasedArchiveRemover

java.lang.Object
ch.qos.logback.core.spi.ContextAwareBase
ch.qos.logback.core.rolling.helper.TimeBasedArchiveRemover
All Implemented Interfaces:
ArchiveRemover, ContextAware
Direct Known Subclasses:
SizeAndTimeBasedArchiveRemover

public class TimeBasedArchiveRemover extends ContextAwareBase implements ArchiveRemover
  • Field Details

    • UNINITIALIZED

      protected static final long UNINITIALIZED
      See Also:
    • INACTIVITY_TOLERANCE_IN_MILLIS

      protected static final long INACTIVITY_TOLERANCE_IN_MILLIS
      See Also:
  • Constructor Details

  • Method Details

    • clean

      public void clean(Date now)
      Specified by:
      clean in interface ArchiveRemover
    • getFilesInPeriod

      protected File[] getFilesInPeriod(Date dateOfPeriodToClean)
    • cleanPeriod

      public void cleanPeriod(Date dateOfPeriodToClean)
    • descendingSort

      protected void descendingSort(File[] matchingFileArray, Date date)
    • setMaxHistory

      public void setMaxHistory(int maxHistory)
      Specified by:
      setMaxHistory in interface ArchiveRemover
    • getPeriodOffsetForDeletionTarget

      protected int getPeriodOffsetForDeletionTarget()
    • setTotalSizeCap

      public void setTotalSizeCap(long totalSizeCap)
      Specified by:
      setTotalSizeCap in interface ArchiveRemover
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • cleanAsynchronously

      public Future<?> cleanAsynchronously(Date now)
      Specified by:
      cleanAsynchronously in interface ArchiveRemover