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
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected static final longprotected static final longFields inherited from class ch.qos.logback.core.spi.ContextAwareBase
context -
Constructor Summary
ConstructorsConstructorDescriptionTimeBasedArchiveRemover(FileNamePattern fileNamePattern, RollingCalendar rc) -
Method Summary
Modifier and TypeMethodDescriptionvoidFuture<?>cleanAsynchronously(Date now) voidcleanPeriod(Date dateOfPeriodToClean) protected voiddescendingSort(File[] matchingFileArray, Date date) protected File[]getFilesInPeriod(Date dateOfPeriodToClean) protected intvoidsetMaxHistory(int maxHistory) voidsetTotalSizeCap(long totalSizeCap) toString()Methods inherited from class ch.qos.logback.core.spi.ContextAwareBase
addError, addError, addInfo, addInfo, addStatus, addWarn, addWarn, getContext, getDeclaredOrigin, getStatusManager, setContextMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface ch.qos.logback.core.spi.ContextAware
addError, addError, addInfo, addInfo, addStatus, addWarn, addWarn, getContext, setContext
-
Field Details
-
UNINITIALIZED
- See Also:
-
INACTIVITY_TOLERANCE_IN_MILLIS
- See Also:
-
-
Constructor Details
-
TimeBasedArchiveRemover
-
-
Method Details
-
clean
- Specified by:
cleanin interfaceArchiveRemover
-
getFilesInPeriod
-
cleanPeriod
-
descendingSort
-
setMaxHistory
- Specified by:
setMaxHistoryin interfaceArchiveRemover
-
getPeriodOffsetForDeletionTarget
-
setTotalSizeCap
- Specified by:
setTotalSizeCapin interfaceArchiveRemover
-
toString
-
cleanAsynchronously
- Specified by:
cleanAsynchronouslyin interfaceArchiveRemover
-