okio.Timeout.clearTimeout()方法的使用及代码示例

x33g5p2x  于2022-01-30 转载在 其他  
字(4.7k)|赞(0)|评价(0)|浏览(128)

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

Timeout.clearTimeout介绍

[英]Clears the timeout. Operating system timeouts may still apply.
[中]清除超时。操作系统超时可能仍然适用。

代码示例

代码示例来源:origin: square/okhttp

public void connect(OkHttpClient client) {
 client = client.newBuilder()
   .eventListener(EventListener.NONE)
   .build();
 call = client.newCall(request);
 call.timeout().clearTimeout();
 call.enqueue(this);
}

代码示例来源:origin: square/okhttp

/**
 * Sets the delegate of {@code timeout} to {@link Timeout#NONE} and resets its underlying timeout
 * to the default configuration. Use this to avoid unexpected sharing of timeouts between pooled
 * connections.
 */
void detachTimeout(ForwardingTimeout timeout) {
 Timeout oldDelegate = timeout.delegate();
 timeout.setDelegate(Timeout.NONE);
 oldDelegate.clearDeadline();
 oldDelegate.clearTimeout();
}

代码示例来源:origin: square/okhttp

.build();
call = Internal.instance.newWebSocketCall(client, request);
call.timeout().clearTimeout();
call.enqueue(new Callback() {
 @Override public void onResponse(Call call, Response response) {

代码示例来源:origin: com.squareup.okhttp3/okhttp

/**
 * Sets the delegate of {@code timeout} to {@link Timeout#NONE} and resets its underlying timeout
 * to the default configuration. Use this to avoid unexpected sharing of timeouts between pooled
 * connections.
 */
void detachTimeout(ForwardingTimeout timeout) {
 Timeout oldDelegate = timeout.delegate();
 timeout.setDelegate(Timeout.NONE);
 oldDelegate.clearDeadline();
 oldDelegate.clearTimeout();
}

代码示例来源:origin: com.squareup.okhttp3/okhttp

.build();
call = Internal.instance.newWebSocketCall(client, request);
call.timeout().clearTimeout();
call.enqueue(new Callback() {
 @Override public void onResponse(Call call, Response response) {

代码示例来源:origin: square/okhttp

source.timeout().clearTimeout();
try {
 b0 = source.readByte() & 0xff;

代码示例来源:origin: com.squareup.okhttp3/okhttp

source.timeout().clearTimeout();
try {
 b0 = source.readByte() & 0xff;

代码示例来源:origin: huxq17/tractor

@Override public Timeout clearTimeout() {
 return delegate.clearTimeout();
}

代码示例来源:origin: com.squareup.okhttp3/okhttp-sse

public void connect(OkHttpClient client) {
 client = client.newBuilder()
   .eventListener(EventListener.NONE)
   .build();
 call = client.newCall(request);
 call.timeout().clearTimeout();
 call.enqueue(this);
}

代码示例来源:origin: huxq17/SwipeCardsView

/**
 * Sets the delegate of {@code timeout} to {@link Timeout#NONE} and resets its underlying timeout
 * to the default configuration. Use this to avoid unexpected sharing of timeouts between pooled
 * connections.
 */
private void detachTimeout(ForwardingTimeout timeout) {
 Timeout oldDelegate = timeout.delegate();
 timeout.setDelegate(Timeout.NONE);
 oldDelegate.clearDeadline();
 oldDelegate.clearTimeout();
}

代码示例来源:origin: com.github.ljun20160606/okhttp

/**
 * Sets the delegate of {@code timeout} to {@link Timeout#NONE} and resets its underlying timeout
 * to the default configuration. Use this to avoid unexpected sharing of timeouts between pooled
 * connections.
 */
void detachTimeout(ForwardingTimeout timeout) {
 Timeout oldDelegate = timeout.delegate();
 timeout.setDelegate(Timeout.NONE);
 oldDelegate.clearDeadline();
 oldDelegate.clearTimeout();
}

代码示例来源:origin: huxq17/tractor

/**
 * Sets the delegate of {@code timeout} to {@link Timeout#NONE} and resets its underlying timeout
 * to the default configuration. Use this to avoid unexpected sharing of timeouts between pooled
 * connections.
 */
private void detachTimeout(ForwardingTimeout timeout) {
 Timeout oldDelegate = timeout.delegate();
 timeout.setDelegate(Timeout.NONE);
 oldDelegate.clearDeadline();
 oldDelegate.clearTimeout();
}

代码示例来源:origin: duzechao/OKHttpUtils

/**
 * Sets the delegate of {@code timeout} to {@link Timeout#NONE} and resets its underlying timeout
 * to the default configuration. Use this to avoid unexpected sharing of timeouts between pooled
 * connections.
 */
private void detachTimeout(ForwardingTimeout timeout) {
 Timeout oldDelegate = timeout.delegate();
 timeout.setDelegate(Timeout.NONE);
 oldDelegate.clearDeadline();
 oldDelegate.clearTimeout();
}

代码示例来源:origin: apache/servicemix-bundles

/**
 * Sets the delegate of {@code timeout} to {@link Timeout#NONE} and resets its underlying timeout
 * to the default configuration. Use this to avoid unexpected sharing of timeouts between pooled
 * connections.
 */
void detachTimeout(ForwardingTimeout timeout) {
 Timeout oldDelegate = timeout.delegate();
 timeout.setDelegate(Timeout.NONE);
 oldDelegate.clearDeadline();
 oldDelegate.clearTimeout();
}

代码示例来源:origin: apache/servicemix-bundles

.build();
call = Internal.instance.newWebSocketCall(client, request);
call.timeout().clearTimeout();
call.enqueue(new Callback() {
 @Override public void onResponse(Call call, Response response) {

代码示例来源:origin: com.github.ljun20160606/okhttp

source.timeout().clearTimeout();
try {
 b0 = source.readByte() & 0xff;

代码示例来源:origin: apache/servicemix-bundles

source.timeout().clearTimeout();
try {
 b0 = source.readByte() & 0xff;

相关文章