TxConstants.Service.DEFAULT_DATA_TX_CLIENT_PROVIDER);
ThriftClientProvider clientProvider;
if ("pool".equals(provider)) {
clientProvider = new PooledClientProvider(cConf, discoveryServiceClient);
} else if ("thread-local".equals(provider)) {
clientProvider = new ThreadLocalClientProvider(cConf, discoveryServiceClient);
} else {
String message = "Unknown Transaction Service Client Provider '" + provider + "'.";
throw new IllegalArgumentException(message);
}
return clientProvider;