com.github.houbbbbb.sso.scheduler.Scheduler Maven / Gradle / Ivy
package com.github.houbbbbb.sso.scheduler;
import java.util.concurrent.ScheduledThreadPoolExecutor;
/**
* @author : hbw
* @desctiption :
* @date : 2020-06-23 14:20
*/
public enum Scheduler {
INSTANCE;
private static final ScheduledThreadPoolExecutor EXECUTOR = new ScheduledThreadPoolExecutor(1);
public ScheduledThreadPoolExecutor getExecutor(){
return EXECUTOR;
}
}