43 lines
1.1 KiB
Java
43 lines
1.1 KiB
Java
|
package okhttp3;
|
||
|
|
||
|
import java.util.concurrent.TimeUnit;
|
||
|
import o.C14957gcv;
|
||
|
import okhttp3.internal.concurrent.TaskRunner;
|
||
|
import okhttp3.internal.connection.RealConnectionPool;
|
||
|
|
||
|
/* loaded from: classes.dex */
|
||
|
public final class ConnectionPool {
|
||
|
private final RealConnectionPool delegate;
|
||
|
|
||
|
public ConnectionPool(RealConnectionPool realConnectionPool) {
|
||
|
C14957gcv.e(realConnectionPool, "");
|
||
|
this.delegate = realConnectionPool;
|
||
|
}
|
||
|
|
||
|
/* JADX WARN: 'this' call moved to the top of the method (can break code semantics) */
|
||
|
public ConnectionPool(int i, long j, TimeUnit timeUnit) {
|
||
|
this(new RealConnectionPool(TaskRunner.INSTANCE, i, j, timeUnit));
|
||
|
C14957gcv.e(timeUnit, "");
|
||
|
}
|
||
|
|
||
|
public ConnectionPool() {
|
||
|
this(5, 5L, TimeUnit.MINUTES);
|
||
|
}
|
||
|
|
||
|
public final int idleConnectionCount() {
|
||
|
return this.delegate.idleConnectionCount();
|
||
|
}
|
||
|
|
||
|
public final int connectionCount() {
|
||
|
return this.delegate.connectionCount();
|
||
|
}
|
||
|
|
||
|
public final void evictAll() {
|
||
|
this.delegate.evictAll();
|
||
|
}
|
||
|
|
||
|
public final RealConnectionPool getDelegate$okhttp() {
|
||
|
return this.delegate;
|
||
|
}
|
||
|
}
|