io.github.icodegarden.nutrient.lang.schedule.GracefullyShutdownSchedule Maven / Gradle / Ivy
The newest version!
package io.github.icodegarden.nutrient.lang.schedule;
import io.github.icodegarden.nutrient.lang.lifecycle.GracefullyShutdown;
/**
*
* @author Fangfang.Xu
*
*/
public abstract class GracefullyShutdownSchedule extends AbstractSchedule implements GracefullyShutdown {
public GracefullyShutdownSchedule() {
super();
}
public GracefullyShutdownSchedule(String name) {
super(name);
}
@Override
public String shutdownName() {
return this.getClass().getSimpleName();
}
@Override
public void shutdown() {
close();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy