okhttp3.Call.clone()方法的使用及代码示例

x33g5p2x  于2022-01-18 转载在 其他  
字(1.8k)|赞(0)|评价(0)|浏览(307)

本文整理了Java中okhttp3.Call.clone()方法的一些代码示例,展示了Call.clone()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Call.clone()方法的具体详情如下:
包路径:okhttp3.Call
类名称:Call
方法名:clone

Call.clone介绍

[英]Create a new, identical call to this one which can be enqueued or executed even if this call has already been.
[中]创建一个与此调用相同的新调用,该调用可以排队或执行,即使此调用已经完成。

代码示例

代码示例来源:origin: amitshekhariitbhu/Fast-Android-Networking

@Override
protected void subscribeActual(Observer<? super T> observer) {
  Call call = originalCall.clone();
  observer.onSubscribe(new ANDisposable(call));
  boolean doNotSwallowError = false;

代码示例来源:origin: amitshekhariitbhu/Fast-Android-Networking

@Override
protected void subscribeActual(Observer<? super T> observer) {
  Call call = originalCall.clone();
  observer.onSubscribe(new ANDisposable(call));
  boolean doNotSwallowError = false;

代码示例来源:origin: io.zipkin.reporter2/zipkin-sender-okhttp3

@Override public HttpCall clone() {
 return new HttpCall(call.clone());
}

代码示例来源:origin: palantir/conjure-java-runtime

@Override
  public RemotingOkHttpCall doClone() {
    return new RemotingOkHttpCall(getDelegate().clone(), backoffStrategy, urls, client, schedulingExecutor,
        executionExecutor, limiter, maxNumRelocations);
  }
}

代码示例来源:origin: com.palantir.conjure.java.runtime/okhttp-clients

@Override
  public RemotingOkHttpCall doClone() {
    return new RemotingOkHttpCall(getDelegate().clone(), backoffStrategy, urls, client, schedulingExecutor,
        executionExecutor, limiter, maxNumRelocations);
  }
}

代码示例来源:origin: com.palantir.remoting3/okhttp-clients

@Override
  public RemotingOkHttpCall doClone() {
    return new RemotingOkHttpCall(getDelegate().clone(), backoffStrategy, urls, client, schedulingExecutor,
        executionExecutor, maxNumRelocations);
  }
}

代码示例来源:origin: brettwooldridge/influx4j

boolean succeeded = true;
do {
  final Call call = httpCall.clone();
  try (Response response = call.execute()) {
   if (response.isSuccessful()) break;

相关文章