com.alibaba.schedulerx.worker.timer.AbstractTimerTask Maven / Gradle / Ivy
package com.alibaba.schedulerx.worker.timer;
import java.util.TimerTask;
import com.alibaba.schedulerx.worker.log.LogFactory;
import com.alibaba.schedulerx.worker.log.Logger;
/**
*
* @author xiaomeng.hxm
*/
public abstract class AbstractTimerTask extends TimerTask {
protected static final Logger LOGGER = LogFactory.getLogger("timer");
public abstract String getName();
// 单位s
public abstract long getInitialDelay();
// 单位s
public abstract long getPeriod();
public void init() {}
}