package com.yiidata.intergration.web.task;
import com.yiidata.intergration.web.config.TaskProperties;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.DisposableBean;
import org.springframework.beans.factory.InitializingBean;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.scheduling.concurrent.ThreadPoolTaskExecutor;
import org.springframework.stereotype.Component;
import java.util.HashMap;
import java.util.Map;
import java.util.Set;
import java.util.concurrent.Callable;
import java.util.concurrent.Future;
import java.util.concurrent.TimeUnit;
/**
*
* 控制 Spark Task 队列
*
*
*
* Created by zhaopx.
* User: zhaopx
* Date: 2020/11/17
* Time: 18:04
*
*
*
* @author zhaopx
*/
@Component
@Slf4j
public class TaskActivationTask implements Callable