com.godmonth.util.cooler.DailyCoolerReset Maven / Gradle / Ivy
package com.godmonth.util.cooler;
import org.apache.commons.lang3.mutable.Mutable;
import org.joda.time.DateTime;
public class DailyCoolerReset {
private boolean enableDelete;
private Mutable mutable;
public void deleteLastExecution() {
if (enableDelete) {
mutable.setValue(null);
}
}
public void setEnableDelete(boolean enableDelete) {
this.enableDelete = enableDelete;
}
public void setMutable(Mutable mutable) {
this.mutable = mutable;
}
}