private static class TestRpcRetryingCallerImpl.ThrowingCallable extends Object implements org.apache.hadoop.hbase.client.RetryingCallable<Void>
Modifier and Type | Field and Description |
---|---|
private Class<? extends org.apache.hadoop.hbase.HBaseServerException> |
exceptionClass |
private long |
specialPauseMillis |
Constructor and Description |
---|
ThrowingCallable(Class<? extends org.apache.hadoop.hbase.HBaseServerException> exceptionClass,
long specialPauseMillis) |
Modifier and Type | Method and Description |
---|---|
Void |
call(int callTimeout) |
String |
getExceptionMessageAdditionalDetail() |
void |
prepare(boolean reload) |
long |
sleep(long pause,
int tries) |
void |
throwable(Throwable t,
boolean retrying) |
private final Class<? extends org.apache.hadoop.hbase.HBaseServerException> exceptionClass
private final long specialPauseMillis
public ThrowingCallable(Class<? extends org.apache.hadoop.hbase.HBaseServerException> exceptionClass, long specialPauseMillis)
public void prepare(boolean reload) throws IOException
prepare
in interface org.apache.hadoop.hbase.client.RetryingCallable<Void>
IOException
public void throwable(Throwable t, boolean retrying)
throwable
in interface org.apache.hadoop.hbase.client.RetryingCallable<Void>
public String getExceptionMessageAdditionalDetail()
getExceptionMessageAdditionalDetail
in interface org.apache.hadoop.hbase.client.RetryingCallable<Void>
public long sleep(long pause, int tries)
sleep
in interface org.apache.hadoop.hbase.client.RetryingCallable<Void>
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.