Description
In the org.apache.juddi.subscription.SubscriptionNotifier class, there is this method:
The value ACCEPTABLE_LAG_TIME is fixed in code and is 500ms, and could this be refactor to be a property that the user can set, and for some special value, for example '-1' will mean always notify.
private boolean firedOnTime(long scheduleExecutionTime) {
long lagTime = System.currentTimeMillis() - scheduleExecutionTime;
if (lagTime <= ACCEPTABLE_LAG_TIME)
else
{ log.warn("NotificationTimer is lagging " + lagTime + " milli seconds behind. A lag time " + "which exceeds an acceptable lagtime of " + ACCEPTABLE_LAG_TIME + "ms indicates " + "that the registry server is under stress. We are therefore skipping this notification " + "cycle."); return false; }}