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
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description classTimeBasedArchiveRemover.ArhiveRemoverRunnable
-
Constructor Summary
Constructors Constructor Description TimeBasedArchiveRemover(FileNamePattern fileNamePattern, RollingCalendar rc)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclean(java.util.Date now)java.util.concurrent.Future<?>cleanAsynchronously(java.util.Date now)voidcleanPeriod(java.util.Date dateOfPeriodToClean)voidsetMaxHistory(int maxHistory)voidsetTotalSizeCap(long totalSizeCap)java.lang.StringtoString()-
Methods inherited from class ch.qos.logback.core.spi.ContextAwareBase
addError, addError, addInfo, addInfo, addStatus, addWarn, addWarn, getContext, getStatusManager, setContext
-
Methods inherited from class java.lang.Object
equals, 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
-
-
-
-
Constructor Detail
-
TimeBasedArchiveRemover
public TimeBasedArchiveRemover(FileNamePattern fileNamePattern, RollingCalendar rc)
-
-
Method Detail
-
clean
public void clean(java.util.Date now)
- Specified by:
cleanin interfaceArchiveRemover
-
cleanPeriod
public void cleanPeriod(java.util.Date dateOfPeriodToClean)
-
setMaxHistory
public void setMaxHistory(int maxHistory)
- Specified by:
setMaxHistoryin interfaceArchiveRemover
-
setTotalSizeCap
public void setTotalSizeCap(long totalSizeCap)
- Specified by:
setTotalSizeCapin interfaceArchiveRemover
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
cleanAsynchronously
public java.util.concurrent.Future<?> cleanAsynchronously(java.util.Date now)
- Specified by:
cleanAsynchronouslyin interfaceArchiveRemover
-
-