use of javax.ejb.TimerConfig in project muikku by otavanopisto.
the class SchoolDataSearchReindexListener method startTimer.
private void startTimer(int duration) {
if (this.timer != null) {
try {
this.timer.cancel();
} catch (Exception e) {
}
this.timer = null;
}
TimerConfig timerConfig = new TimerConfig();
timerConfig.setPersistent(false);
this.timer = timerService.createSingleActionTimer(duration, timerConfig);
}
use of javax.ejb.TimerConfig in project muikku by otavanopisto.
the class AbstractTimedNotificationStrategy method startTimer.
private void startTimer(long duration) {
if (this.timer != null) {
this.timer.cancel();
this.timer = null;
}
TimerConfig timerConfig = new TimerConfig();
timerConfig.setPersistent(false);
this.timer = timerService.createSingleActionTimer(duration, timerConfig);
}
Aggregations