HostCacheManager$HostEntry.smali
.class Lio/rong/imlib/httpdns/HostCacheManager$HostEntry;
.super Ljava/lang/Object;
.source "HostCacheManager.java"
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Lio/rong/imlib/httpdns/HostCacheManager;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x8
name = "HostEntry"
.end annotation
# instance fields
.field private clientIp:Ljava/lang/String;
.field private ipv4List:Ljava/util/ArrayList;
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/util/ArrayList<",
"Ljava/lang/String;",
">;"
}
.end annotation
.end field
.field private ipv6List:Ljava/util/ArrayList;
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/util/ArrayList<",
"Ljava/lang/String;",
">;"
}
.end annotation
.end field
.field private queryTime:J
.field private ttl:J
# direct methods
.method constructor <init>()V
.registers 1
.line 1
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
# virtual methods
.method public getClientIp()Ljava/lang/String;
.registers 2
.line 1
iget-object v0, p0, Lio/rong/imlib/httpdns/HostCacheManager$HostEntry;->clientIp:Ljava/lang/String;
return-object v0
.end method
.method getIpv4List()Ljava/util/ArrayList;
.registers 2
.annotation system Ldalvik/annotation/Signature;
value = {
"()",
"Ljava/util/ArrayList<",
"Ljava/lang/String;",
">;"
}
.end annotation
.line 1
iget-object v0, p0, Lio/rong/imlib/httpdns/HostCacheManager$HostEntry;->ipv4List:Ljava/util/ArrayList;
return-object v0
.end method
.method getIpv6List()Ljava/util/ArrayList;
.registers 2
.annotation system Ldalvik/annotation/Signature;
value = {
"()",
"Ljava/util/ArrayList<",
"Ljava/lang/String;",
">;"
}
.end annotation
.line 1
iget-object v0, p0, Lio/rong/imlib/httpdns/HostCacheManager$HostEntry;->ipv6List:Ljava/util/ArrayList;
return-object v0
.end method
.method getQueryTime()J
.registers 3
.line 1
iget-wide v0, p0, Lio/rong/imlib/httpdns/HostCacheManager$HostEntry;->queryTime:J
return-wide v0
.end method
.method getTtl()J
.registers 3
.line 1
iget-wide v0, p0, Lio/rong/imlib/httpdns/HostCacheManager$HostEntry;->ttl:J
return-wide v0
.end method
.method public isExpired()Z
.registers 7
.line 1
invoke-virtual {p0}, Lio/rong/imlib/httpdns/HostCacheManager$HostEntry;->getQueryTime()J
move-result-wide v0
iget-wide v2, p0, Lio/rong/imlib/httpdns/HostCacheManager$HostEntry;->ttl:J
add-long/2addr v0, v2
invoke-static {}, Ljava/lang/System;->currentTimeMillis()J
move-result-wide v2
const-wide/16 v4, 0x3e8
div-long/2addr v2, v4
cmp-long v4, v0, v2
if-gez v4, :cond_14
const/4 v0, 0x1
goto :goto_15
:cond_14
const/4 v0, 0x0
:goto_15
return v0
.end method
.method public setClientIp(Ljava/lang/String;)V
.registers 2
.line 1
iput-object p1, p0, Lio/rong/imlib/httpdns/HostCacheManager$HostEntry;->clientIp:Ljava/lang/String;
return-void
.end method
.method setIpv4List(Ljava/util/ArrayList;)V
.registers 2
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Ljava/util/ArrayList<",
"Ljava/lang/String;",
">;)V"
}
.end annotation
.line 1
iput-object p1, p0, Lio/rong/imlib/httpdns/HostCacheManager$HostEntry;->ipv4List:Ljava/util/ArrayList;
return-void
.end method
.method setIpv6List(Ljava/util/ArrayList;)V
.registers 2
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Ljava/util/ArrayList<",
"Ljava/lang/String;",
">;)V"
}
.end annotation
.line 1
iput-object p1, p0, Lio/rong/imlib/httpdns/HostCacheManager$HostEntry;->ipv6List:Ljava/util/ArrayList;
return-void
.end method
.method setQueryTime(J)V
.registers 3
.line 1
iput-wide p1, p0, Lio/rong/imlib/httpdns/HostCacheManager$HostEntry;->queryTime:J
return-void
.end method
.method setTtl(J)V
.registers 3
.line 1
iput-wide p1, p0, Lio/rong/imlib/httpdns/HostCacheManager$HostEntry;->ttl:J
return-void
.end method