org.apache.hadoop.hbase.client
Class ConnectionUtils
java.lang.Object
org.apache.hadoop.hbase.client.ConnectionUtils
public class ConnectionUtils
- extends Object
Utility used by client connections such as HConnection
and
ServerCallable
Method Summary |
static long |
getPauseTime(long pause,
int tries)
Calculate pause time. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ConnectionUtils
public ConnectionUtils()
getPauseTime
public static long getPauseTime(long pause,
int tries)
- Calculate pause time.
Built on
HConstants.RETRY_BACKOFF
.
- Parameters:
pause
- tries
-
- Returns:
- How long to wait after
tries
retries
Copyright © 2014 The Apache Software Foundation. All Rights Reserved.