Class HBaseServerExceptionPauseManager
java.lang.Object
org.apache.hadoop.hbase.client.backoff.HBaseServerExceptionPauseManager
-
Field Summary
Modifier and TypeFieldDescriptionprivate static final org.slf4j.Logger
private final long
private final long
private final long
-
Constructor Summary
ConstructorDescriptionHBaseServerExceptionPauseManager
(long pauseNs, long pauseNsForServerOverloaded, long timeoutNs) -
Method Summary
Modifier and TypeMethodDescriptiongetPauseNsFromException
(Throwable error, int tries, long startNs) Returns the nanos, if any, for which the client should waitlong
remainingTimeNs
(long startNs)
-
Field Details
-
LOG
-
pauseNs
-
pauseNsForServerOverloaded
-
timeoutNs
-
-
Constructor Details
-
HBaseServerExceptionPauseManager
public HBaseServerExceptionPauseManager(long pauseNs, long pauseNsForServerOverloaded, long timeoutNs)
-
-
Method Details
-
getPauseNsFromException
Returns the nanos, if any, for which the client should wait- Parameters:
error
- The exception from the servertries
- The current retry count- Returns:
- The time, in nanos, to pause. If empty then pausing would exceed our timeout, so we should throw now
-
remainingTimeNs
-