use of net.javacrumbs.shedlock.micronaut.SchedulerLock in project ShedLock by lukas-krecan.
the class ScheduledTasks method reportCurrentTime.
@Scheduled(fixedRate = "100ms")
@SchedulerLock(name = "reportCurrentTime")
public void reportCurrentTime() {
assertLocked();
called.set(true);
System.out.println(new Date());
}
use of net.javacrumbs.shedlock.micronaut.SchedulerLock in project ShedLock by lukas-krecan.
the class ScheduledTasks method reportCurrentTime.
@Scheduled(fixedRate = "100ms")
@SchedulerLock(name = "reportCurrentTime")
public void reportCurrentTime() {
assertLocked();
called.set(true);
System.out.println(new Date());
}
Aggregations