本文整理了Java中okhttp3.Call.isExecuted()
方法的一些代码示例,展示了Call.isExecuted()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Call.isExecuted()
方法的具体详情如下:
包路径:okhttp3.Call
类名称:Call
方法名:isExecuted
[英]Returns true if this call has been either #execute() or #enqueue(Callback). It is an error to execute a call more than once.
[中]如果此调用是#execute()或#enqueue(回调),则返回true。多次执行调用是错误的。
代码示例来源:origin: com.palantir.conjure.java.runtime/okhttp-clients
@Override
public boolean isExecuted() {
return delegate.isExecuted();
}
代码示例来源:origin: com.palantir.remoting3/okhttp-clients
@Override
public boolean isExecuted() {
return delegate.isExecuted();
}
代码示例来源:origin: palantir/conjure-java-runtime
@Override
public boolean isExecuted() {
return delegate.isExecuted();
}
代码示例来源:origin: REBOOTERS/My-MVP
@Override
public void onFailure(Call call, IOException e) {
Log.e(TAG, "onFailure: call==" + call.isExecuted());
Log.e(TAG, "onFailure: e===" + e.toString());
}
代码示例来源:origin: watson-developer-cloud/java-sdk
@Override
protected void finalize() throws Throwable {
super.finalize();
if (!call.isExecuted()) {
final Request r = call.request();
LOG.warning(r.method() + " request to " + r.url() + " has not been sent. Did you forget to call execute()?");
}
}
}
代码示例来源:origin: com.ibm.watson.developer_cloud/core
@Override
protected void finalize() throws Throwable {
super.finalize();
if (!call.isExecuted()) {
final Request r = call.request();
LOG.warning(r.method() + " request to " + r.url() + " has not been sent. Did you forget to call execute()?");
}
}
}
内容来源于网络,如有侵权,请联系作者删除!