use of org.apache.gobblin.restli.UriRestClientKey in project incubator-gobblin by apache.
the class RedirectAwareRestClientRequestSender method updateRestClient.
@VisibleForTesting
void updateRestClient(String uri, String reason) throws NotConfiguredException {
log.info(String.format("Switching to server prefix %s due to: %s", uri, reason));
this.currentServerPrefix = uri;
this.restClient = (RestClient) this.broker.getSharedResource(new SharedRestClientFactory(), new UriRestClientKey(RestliLimiterFactory.RESTLI_SERVICE_NAME, uri));
}
Aggregations