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
-
Field Summary
Modifier and TypeFieldDescriptionprotected static final long
protected static final long
Fields inherited from class ch.qos.logback.core.spi.ContextAwareBase
context
-
Constructor Summary
ConstructorDescriptionTimeBasedArchiveRemover
(FileNamePattern fileNamePattern, RollingCalendar rc) -
Method Summary
Modifier and TypeMethodDescriptionvoid
Called from the cleaning thread.Future
<?> void
cleanPeriod
(Instant instantOfPeriodToClean) protected void
descendingSort
(File[] matchingFileArray, Instant instant) protected File[]
getFilesInPeriod
(Instant instantOfPeriodToClean) protected int
void
setMaxHistory
(int maxHistory) void
setTotalSizeCap
(long totalSizeCap) toString()
Methods inherited from class ch.qos.logback.core.spi.ContextAwareBase
addError, addError, addInfo, addInfo, addStatus, addWarn, addWarn, getContext, getDeclaredOrigin, getStatusManager, setContext
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods 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
-
cleanAsynchronously
- Specified by:
cleanAsynchronously
in interfaceArchiveRemover
-
clean
Called from the cleaning thread.- Specified by:
clean
in interfaceArchiveRemover
- Parameters:
now
-
-
getFilesInPeriod
-
cleanPeriod
-
descendingSort
-
setMaxHistory
- Specified by:
setMaxHistory
in interfaceArchiveRemover
-
getPeriodOffsetForDeletionTarget
-
setTotalSizeCap
- Specified by:
setTotalSizeCap
in interfaceArchiveRemover
-
toString
-