public RpcRetryingCallerWithReadReplicas(
     RpcControllerFactory rpcControllerFactory,
     TableName tableName,
     ClusterConnection cConnection,
     final Get get,
     ExecutorService pool,
     int retries,
     int callTimeout,
     int timeBeforeReplicas) {
   this.rpcControllerFactory = rpcControllerFactory;
   this.tableName = tableName;
   this.cConnection = cConnection;
   this.conf = cConnection.getConfiguration();
   this.get = get;
   this.pool = pool;
   this.retries = retries;
   this.callTimeout = callTimeout;
   this.timeBeforeReplicas = timeBeforeReplicas;
   this.rpcRetryingCallerFactory = new RpcRetryingCallerFactory(conf);
 }
Пример #2
0
 @Override
 public Configuration getConfiguration() {
   return wrappedConnection.getConfiguration();
 }