/**
* Determines the next scheduled execution time for this subscribed query.
*
* @param timer
* The Timer to set the next scheduled time.
* @throws IllegalArgumentException
*/
protected void setNextScheduledExecutionTime(final Timer timer) throws IllegalArgumentException {
try {
Date nextSchedule = schedule.nextScheduledTime().getTime();
LOG.debug("Next scheduled time for the subscribed query is '" + nextSchedule + "'.");
timer.addNotification("SubscriptionSchedule", "Please do the query", timer, nextSchedule);
} catch (ImplementationExceptionResponse e) {
String msg = "The next scheduled date for the subscribed query with ID '" + getSubscriptionID()
+ "' cannot be evaluated: " + e.getMessage();
LOG.error(msg, e);
}
}
QuerySubscriptionScheduled.java 文件源码
java
阅读 19
收藏 0
点赞 0
评论 0
项目:fosstrak-epcis
作者:
评论列表
文章目录