/**
* This method is handles a notification when the Timer for the schedule
* times out.
*
* @see javax.management.NotificationListener#handleNotification(javax.management.Notification,
* java.lang.Object)
* @param pNotification
* The Notification.
* @param pHandback
* A Timer stating the time when the Notification should be
* invoked.
*/
public void handleNotification(final Notification pNotification, final Object pHandback) {
if (pHandback == null) {
LOG.error("The timer stating the next scheduled query execution time is null!");
return;
}
Timer timer = (Timer) pHandback;
if (!doItAgain.booleanValue()) {
timer.stop();
} else {
// execute the query and determine next scheduled execution time
executeQuery();
setNextScheduledExecutionTime(timer);
}
}
QuerySubscriptionScheduled.java 文件源码
java
阅读 18
收藏 0
点赞 0
评论 0
项目:fosstrak-epcis
作者:
评论列表
文章目录