package com.patzn.lims.sys;//package com.patzn.lims.sys;
//
//
//import java.util.concurrent.TimeUnit;
//
//import org.joda.time.DateTime;
//import org.springframework.scheduling.annotation.Scheduled;
//import org.springframework.stereotype.Component;
//
//import com.baomidou.lock.annotation.Lock4j;
//
//import lombok.extern.slf4j.Slf4j;
//
//@Slf4j
//@Component
//public class ScheduledTasks {
//
//  @Lock4j
//  @Scheduled(fixedDelay = 2000)
//  public void scheduleTaskWithFixedDelay() {
//    log.error("Fixed Delay Task :: Execution Time - {}", DateTime.now().toString("HH:mm:ss"));
//    try {
//      TimeUnit.SECONDS.sleep(50);
//    } catch (InterruptedException ex) {
//      log.error("Ran into an error {}", ex);
//      throw new IllegalStateException(ex);
//    }
//  }
//}
