QuerySubscriptionScheduled.java 文件源码

java
阅读 17 收藏 0 点赞 0 评论 0

项目:oliot-epcis 作者:
/**
 * 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);
    }
}
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号