HADOOP-14413. Add Javadoc comment for jitter parameter on CachingGetSpaceUsed

(Contributed by Erik Krogen via Daniel Templeton)
This commit is contained in:
Daniel Templeton 2017-05-11 11:02:20 -07:00 committed by Xiaoyu Yao
parent 9247aa23ef
commit d76fedffd7
1 changed files with 3 additions and 0 deletions

View File

@ -65,6 +65,9 @@ public abstract class CachingGetSpaceUsed implements Closeable, GetSpaceUsed {
*
* @param path the path to check disk usage in
* @param interval refresh the disk usage at this interval
* @param jitter randomize the refresh interval timing by this amount;
* the actual interval will be chosen uniformly between
* {@code interval-jitter} and {@code interval+jitter}
* @param initialUsed use this value until next refresh
* @throws IOException if we fail to refresh the disk usage
*/