public class TimeBasedArchiveRemover extends ContextAwareBase implements ArchiveRemover
| Modifier and Type | Field and Description |
|---|---|
protected FileNamePattern |
fileNamePattern |
context| Constructor and Description |
|---|
TimeBasedArchiveRemover(FileNamePattern fileNamePattern,
RollingCalendar rc,
FileProvider fileProvider) |
| Modifier and Type | Method and Description |
|---|---|
void |
clean(Date now) |
Future<?> |
cleanAsynchronously(Date now) |
void |
setMaxHistory(int maxHistory) |
void |
setTotalSizeCap(long totalSizeCap) |
String |
toString() |
addError, addError, addInfo, addInfo, addStatus, addWarn, addWarn, getContext, getDeclaredOrigin, getStatusManager, setContextclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitaddError, addError, addInfo, addInfo, addStatus, addWarn, addWarn, getContext, setContextprotected final FileNamePattern fileNamePattern
public TimeBasedArchiveRemover(FileNamePattern fileNamePattern, RollingCalendar rc, FileProvider fileProvider)
public void clean(Date now)
clean in interface ArchiveRemoverpublic void setMaxHistory(int maxHistory)
setMaxHistory in interface ArchiveRemoverpublic void setTotalSizeCap(long totalSizeCap)
setTotalSizeCap in interface ArchiveRemoverpublic Future<?> cleanAsynchronously(Date now)
cleanAsynchronously in interface ArchiveRemover