我使用Spring Boot,在代码中有以下代码:
@SchedulerLock(name = "onlineIngestionTask", lockAtMostFor = 900, lockAtLeastFor = 900)
public void pullTasksFromRemote() throws InterruptedException {
logger.info("task-started");
Thread.sleep(500);
logger.info("task-stopped");
}
有没有办法通过编程的方式来替换它?