23 lines
566 B
Java
23 lines
566 B
Java
package okhttp3.internal.connection;
|
|
|
|
import java.util.LinkedHashSet;
|
|
import java.util.Set;
|
|
import okhttp3.Route;
|
|
|
|
/* loaded from: classes2.dex */
|
|
public final class RouteDatabase {
|
|
private final Set<Route> failedRoutes = new LinkedHashSet();
|
|
|
|
public synchronized void connected(Route route) {
|
|
this.failedRoutes.remove(route);
|
|
}
|
|
|
|
public synchronized void failed(Route route) {
|
|
this.failedRoutes.add(route);
|
|
}
|
|
|
|
public synchronized boolean shouldPostpone(Route route) {
|
|
return this.failedRoutes.contains(route);
|
|
}
|
|
}
|