106107108109110111112113114115116
Invocation.Builder builder = webtarget .request(MediaType.APPLICATION_JSON_TYPE); // 可重试的下载 UnreliableInterface unreliableImpl = new RestfulGet(builder); try { Response response = (Response) RetryProxy .retry(unreliableImpl,
257258259260261262263264265266267
throws Exception { for (URL url : remoteUrl.getUrls()) { // 可重试的下载 UnreliableInterface unreliableImpl = new FetchConfFile(url, localTmpFile); try { return RetryProxy.retry(unreliableImpl, retryTimes,