I have few questions regarding safety and correctness of following hypothetical timer service:
@Singleton
public class MyTimerService {
@Schedule(second = "*", minute = "*", hour = "*", persistent = false)
public void checkTakingOneMinute() {
// code below takes a minute or so
}
}
All I want to do here, is to check something as soon as possible (every second in this case). As I understand it, method checkTakingOneMinute()
wont start new check until it finishes previous call. That's what I want, but I'm worrying about container's internals: will method execution be just skipped when busy or it will be locked and put into a sort of queue with subsequent lock timeouts?