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, setContext
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
addError, addError, addInfo, addInfo, addStatus, addWarn, addWarn, getContext, setContext
protected final FileNamePattern fileNamePattern
public TimeBasedArchiveRemover(FileNamePattern fileNamePattern, RollingCalendar rc, FileProvider fileProvider)
public void clean(Date now)
clean
in interface ArchiveRemover
public void setMaxHistory(int maxHistory)
setMaxHistory
in interface ArchiveRemover
public void setTotalSizeCap(long totalSizeCap)
setTotalSizeCap
in interface ArchiveRemover
public Future<?> cleanAsynchronously(Date now)
cleanAsynchronously
in interface ArchiveRemover