package com.zjty.inspect.thread.task;

import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;

/**
 * @program: bserver-parent
 * @description: ScheduledService
 * @author: LiuJie
 * @create: 2019-05-20 15:36
 **/

@Slf4j
@Component
public class ScheduledService {

    @Autowired
    private AsyncTask asyncTask;

    /**
    * @Description: 每隔30秒，轮训消除一次未消除的报警消息
    * @Param:
    * @return:
    * @Author: LiuJie
    * @Date: 2019/5/31
    */
    @Scheduled(fixedRate = 1000 * 30)
    public void removeMessage() {
//        asyncTask.removeMessage();
    }
}