@InterfaceAudience.Private public class ConnectionUtils extends Object
| Constructor and Description | 
|---|
| ConnectionUtils() | 
| Modifier and Type | Method and Description | 
|---|---|
| static long | addJitter(long pause,
         float jitter)Adds / subs a 10% jitter to a pause time. | 
| static long | getPauseTime(long pause,
            int tries)Calculate pause time. | 
public static long getPauseTime(long pause,
                int tries)
HConstants.RETRY_BACKOFF.pause - tries - tries retriespublic static long addJitter(long pause,
             float jitter)
pause - the expected pause.jitter - the jitter ratio, between 0 and 1, exclusive.Copyright © 2013 The Apache Software Foundation. All Rights Reserved.