static HBaseRpcController configureHBaseRpcController(RpcController controller,
    int channelOperationTimeout) {
    HBaseRpcController hrc;
    if (controller != null && controller instanceof HBaseRpcController) {
      hrc = (HBaseRpcController) controller;
      if (!hrc.hasCallTimeout()) {
        hrc.setCallTimeout(channelOperationTimeout);
      }
    } else {
      hrc = new HBaseRpcControllerImpl();
      hrc.setCallTimeout(channelOperationTimeout);
    }
    return hrc;
  }
Configure an hbase rpccontroller
@param controller              to configure
@param channelOperationTimeout timeout for operation
@return configured controller
hbase-client/src/main/java/org/apache/hadoop/hbase/ipc/AbstractRpcClient.java