Rabbit-R1/switch port/java/sources/okhttp3/ConnectionPool.java
2024-05-21 17:08:36 -04:00

46 lines
2.5 KiB
Java

package okhttp3;
import java.util.concurrent.TimeUnit;
import kotlin.Metadata;
import kotlin.jvm.internal.Intrinsics;
import okhttp3.internal.concurrent.TaskRunner;
import okhttp3.internal.connection.RealConnectionPool;
/* compiled from: ConnectionPool.kt */
@Metadata(bv = {1, 0, 3}, d1 = {"\u0000.\n\u0002\u0018\u0002\n\u0002\u0010\u0000\n\u0000\n\u0002\u0010\b\n\u0000\n\u0002\u0010\t\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0003\n\u0002\u0018\u0002\n\u0002\b\u0005\n\u0002\u0010\u0002\n\u0002\b\u0002\u0018\u00002\u00020\u0001B\u001f\b\u0016\u0012\u0006\u0010\u0002\u001a\u00020\u0003\u0012\u0006\u0010\u0004\u001a\u00020\u0005\u0012\u0006\u0010\u0006\u001a\u00020\u0007¢\u0006\u0002\u0010\bB\u0007\b\u0016¢\u0006\u0002\u0010\tB\u000f\b\u0000\u0012\u0006\u0010\n\u001a\u00020\u000b¢\u0006\u0002\u0010\fJ\u0006\u0010\u000f\u001a\u00020\u0003J\u0006\u0010\u0010\u001a\u00020\u0011J\u0006\u0010\u0012\u001a\u00020\u0003R\u0014\u0010\n\u001a\u00020\u000bX\u0080\u0004¢\u0006\b\n\u0000\u001a\u0004\b\r\u0010\u000e¨\u0006\u0013"}, d2 = {"Lokhttp3/ConnectionPool;", "", "maxIdleConnections", "", "keepAliveDuration", "", "timeUnit", "Ljava/util/concurrent/TimeUnit;", "(IJLjava/util/concurrent/TimeUnit;)V", "()V", "delegate", "Lokhttp3/internal/connection/RealConnectionPool;", "(Lokhttp3/internal/connection/RealConnectionPool;)V", "getDelegate$okhttp", "()Lokhttp3/internal/connection/RealConnectionPool;", "connectionCount", "evictAll", "", "idleConnectionCount", "okhttp"}, k = 1, mv = {1, 4, 0})
/* loaded from: classes3.dex */
public final class ConnectionPool {
private final RealConnectionPool delegate;
/* renamed from: getDelegate$okhttp, reason: from getter */
public final RealConnectionPool getDelegate() {
return this.delegate;
}
public ConnectionPool(RealConnectionPool delegate) {
Intrinsics.checkNotNullParameter(delegate, "delegate");
this.delegate = delegate;
}
/* 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));
Intrinsics.checkNotNullParameter(timeUnit, "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();
}
}