You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
150 lines
2.8 KiB
150 lines
2.8 KiB
2 years ago
|
.class public final Lokhttp3/internal/RouteDatabase;
|
||
|
.super Ljava/lang/Object;
|
||
|
.source "RouteDatabase.java"
|
||
|
|
||
|
|
||
|
# instance fields
|
||
|
.field private final failedRoutes:Ljava/util/Set;
|
||
|
.annotation system Ldalvik/annotation/Signature;
|
||
|
value = {
|
||
|
"Ljava/util/Set",
|
||
|
"<",
|
||
|
"Lokhttp3/Route;",
|
||
|
">;"
|
||
|
}
|
||
|
.end annotation
|
||
|
.end field
|
||
|
|
||
|
|
||
|
# direct methods
|
||
|
.method public constructor <init>()V
|
||
|
.locals 1
|
||
|
|
||
|
.prologue
|
||
|
.line 28
|
||
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
||
|
|
||
|
.line 29
|
||
|
new-instance v0, Ljava/util/LinkedHashSet;
|
||
|
|
||
|
invoke-direct {v0}, Ljava/util/LinkedHashSet;-><init>()V
|
||
|
|
||
|
iput-object v0, p0, Lokhttp3/internal/RouteDatabase;->failedRoutes:Ljava/util/Set;
|
||
|
|
||
|
return-void
|
||
|
.end method
|
||
|
|
||
|
|
||
|
# virtual methods
|
||
|
.method public declared-synchronized connected(Lokhttp3/Route;)V
|
||
|
.locals 1
|
||
|
|
||
|
.prologue
|
||
|
.line 38
|
||
|
monitor-enter p0
|
||
|
|
||
|
:try_start_0
|
||
|
iget-object v0, p0, Lokhttp3/internal/RouteDatabase;->failedRoutes:Ljava/util/Set;
|
||
|
|
||
|
invoke-interface {v0, p1}, Ljava/util/Set;->remove(Ljava/lang/Object;)Z
|
||
|
:try_end_0
|
||
|
.catchall {:try_start_0 .. :try_end_0} :catchall_0
|
||
|
|
||
|
.line 39
|
||
|
monitor-exit p0
|
||
|
|
||
|
return-void
|
||
|
|
||
|
.line 38
|
||
|
:catchall_0
|
||
|
move-exception v0
|
||
|
|
||
|
monitor-exit p0
|
||
|
|
||
|
throw v0
|
||
|
.end method
|
||
|
|
||
|
.method public declared-synchronized failed(Lokhttp3/Route;)V
|
||
|
.locals 1
|
||
|
|
||
|
.prologue
|
||
|
.line 33
|
||
|
monitor-enter p0
|
||
|
|
||
|
:try_start_0
|
||
|
iget-object v0, p0, Lokhttp3/internal/RouteDatabase;->failedRoutes:Ljava/util/Set;
|
||
|
|
||
|
invoke-interface {v0, p1}, Ljava/util/Set;->add(Ljava/lang/Object;)Z
|
||
|
:try_end_0
|
||
|
.catchall {:try_start_0 .. :try_end_0} :catchall_0
|
||
|
|
||
|
.line 34
|
||
|
monitor-exit p0
|
||
|
|
||
|
return-void
|
||
|
|
||
|
.line 33
|
||
|
:catchall_0
|
||
|
move-exception v0
|
||
|
|
||
|
monitor-exit p0
|
||
|
|
||
|
throw v0
|
||
|
.end method
|
||
|
|
||
|
.method public declared-synchronized failedRoutesCount()I
|
||
|
.locals 1
|
||
|
|
||
|
.prologue
|
||
|
.line 47
|
||
|
monitor-enter p0
|
||
|
|
||
|
:try_start_0
|
||
|
iget-object v0, p0, Lokhttp3/internal/RouteDatabase;->failedRoutes:Ljava/util/Set;
|
||
|
|
||
|
invoke-interface {v0}, Ljava/util/Set;->size()I
|
||
|
:try_end_0
|
||
|
.catchall {:try_start_0 .. :try_end_0} :catchall_0
|
||
|
|
||
|
move-result v0
|
||
|
|
||
|
monitor-exit p0
|
||
|
|
||
|
return v0
|
||
|
|
||
|
:catchall_0
|
||
|
move-exception v0
|
||
|
|
||
|
monitor-exit p0
|
||
|
|
||
|
throw v0
|
||
|
.end method
|
||
|
|
||
|
.method public declared-synchronized shouldPostpone(Lokhttp3/Route;)Z
|
||
|
.locals 1
|
||
|
|
||
|
.prologue
|
||
|
.line 43
|
||
|
monitor-enter p0
|
||
|
|
||
|
:try_start_0
|
||
|
iget-object v0, p0, Lokhttp3/internal/RouteDatabase;->failedRoutes:Ljava/util/Set;
|
||
|
|
||
|
invoke-interface {v0, p1}, Ljava/util/Set;->contains(Ljava/lang/Object;)Z
|
||
|
:try_end_0
|
||
|
.catchall {:try_start_0 .. :try_end_0} :catchall_0
|
||
|
|
||
|
move-result v0
|
||
|
|
||
|
monitor-exit p0
|
||
|
|
||
|
return v0
|
||
|
|
||
|
:catchall_0
|
||
|
move-exception v0
|
||
|
|
||
|
monitor-exit p0
|
||
|
|
||
|
throw v0
|
||
|
.end method
|