package org.security.trans.taskCheck.device;

import lombok.AllArgsConstructor;
import org.springframework.scheduling.annotation.Async;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;

/**
 * @author zj 2022/4/27
 */
@Component
@AllArgsConstructor
public class DeviceCheckTask {
	private final DeviceCheck deviceCheck;

	@Async("securityThreadPool")
	@Scheduled(cron = "0 0 2 * * ?")
	public void check(){
		deviceCheck.handle();
	}
}
