ProgressTracker: Decrease delay due nearestAllowed 38/60438/2
authorVratko Polak <vrpolak@cisco.com>
Fri, 7 Jul 2017 11:14:57 +0000 (13:14 +0200)
committerRobert Varga <nite@hq.sk>
Mon, 17 Jul 2017 08:06:56 +0000 (08:06 +0000)
commitb0d9742a77d7f7792f36a037352d783ff3a99786
tree7f2d3e8a27e9a245cb88f34ef95dc60eed7426f4
parent2a2a1d93bf71c5b5b341f1664f474a349e7739c9
ProgressTracker: Decrease delay due nearestAllowed

If nearestAllowed is in past, that means we have
a temporary interval of relatively small demand for tasks.
We can reduce delay, as if the time since nearestAllowed
was a "delay in advance".

This way the queue stays closer to the intended capacity.

Change-Id: I40f95ea9cb25ea62d8c65ee78cafc79e9b56cc11
Signed-off-by: Vratko Polak <vrpolak@cisco.com>
(cherry picked from commit 80e6514d56cd4dc6aa40997dea2b460723148341)
opendaylight/md-sal/cds-access-client/src/main/java/org/opendaylight/controller/cluster/access/client/ProgressTracker.java

©2013 OpenDaylight, A Linux Foundation Collaborative Project. All Rights Reserved.
OpenDaylight is a registered trademark of The OpenDaylight Project, Inc.
Linux Foundation and OpenDaylight are registered trademarks of the Linux Foundation.
Linux is a registered trademark of Linus Torvalds.