我尝试使用@Scheduled(fixedDelay = 10000)
实现这个功能,通过导入org.springframework.scheduling.annotation.Scheduled
类,但是在构建时出现以下错误:
java.lang.IllegalArgumentException: Invalid @Scheduled method 'monitorRoutesProcessing': 'fixedDelay' not supported
是否有一种方式可以在Quarkus中实现具有固定延迟的调度程序? 我了解我们可以使用@every来实现固定速率。
@io.quarkus.scheduler.Scheduled
,具体用法请参考 https://quarkus.io/guides/scheduler-reference。 - undefined