@InterfaceAudience.Private class RetryingCallerInterceptorFactory extends Object
ConnectionImplementation
with
the implementation of the RetryingCallerInterceptor
that we would use
to intercept the RpcRetryingCaller
during the course of their calls.Modifier and Type | Field and Description |
---|---|
private org.apache.hadoop.conf.Configuration |
conf |
private boolean |
failFast |
private static org.slf4j.Logger |
LOG |
static RetryingCallerInterceptor |
NO_OP_INTERCEPTOR |
Constructor and Description |
---|
RetryingCallerInterceptorFactory(org.apache.hadoop.conf.Configuration conf) |
Modifier and Type | Method and Description |
---|---|
RetryingCallerInterceptor |
build()
This builds the implementation of
RetryingCallerInterceptor that we
specify in the conf and returns the same. |
private static final org.slf4j.Logger LOG
private org.apache.hadoop.conf.Configuration conf
private final boolean failFast
public static final RetryingCallerInterceptor NO_OP_INTERCEPTOR
public RetryingCallerInterceptorFactory(org.apache.hadoop.conf.Configuration conf)
public RetryingCallerInterceptor build()
RetryingCallerInterceptor
that we
specify in the conf and returns the same.
To use PreemptiveFastFailInterceptor
, set HBASE_CLIENT_ENABLE_FAST_FAIL_MODE to true.
HBASE_CLIENT_FAST_FAIL_INTERCEPTOR_IMPL is defaulted to PreemptiveFastFailInterceptor
RetryingCallerInterceptor
object according to the
configuration.Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.