Class HBaseServerExceptionPauseManager

java.lang.Object
org.apache.hadoop.hbase.client.backoff.HBaseServerExceptionPauseManager

@Private public class HBaseServerExceptionPauseManager extends Object
  • Field Details

  • Constructor Details

  • Method Details

    • getPauseNsFromException

      public OptionalLong getPauseNsFromException(Throwable error, int tries, long startNs)
      Returns the nanos, if any, for which the client should wait
      Parameters:
      error - The exception from the server
      tries - 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

      public long remainingTimeNs(long startNs)