}
@Override
public RolloverDescription rollover(String currentActiveFile) {
RolloverDescription rolloverDescription = super.rollover(currentActiveFile);
if (rolloverDescription == null) {
// We'll wait until next rollover before deleting anything
return null;
}
if (maxBackupIndex <= 0) {
// This means cleanup is deactivated
return rolloverDescription;
}
String activeFileName = rolloverDescription.getActiveFileName();
boolean append = rolloverDescription.getAppend();
Action synchronous = rolloverDescription.getSynchronous();
final Action asynchronous = rolloverDescription.getAsynchronous();
Action newAsynchronous = new ActionBase() {
@Override
public boolean execute() throws IOException {