Package com.qiniu.android.dns
Class Record
java.lang.Object
com.qiniu.android.dns.Record
public final class Record
extends java.lang.Object
Created by bailong on 15/6/12.
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classRecord.Source -
Field Summary
Fields Modifier and Type Field Description Record.Sourcesource记录来源 httpDns或者SystemlongtimeStamp时间戳,用来判断超时intttlTTL dns结果缓存时间static intTTL_MIN_SECONDSinttype记录类型,A或者CNamestatic intTYPE_AA 记录 类型static intTYPE_CNAMECName 类型java.lang.Stringvalue具体的值,A 记录时为IP,CName时为指向的域名 -
Constructor Summary
Constructors Constructor Description Record(java.lang.String value, int type, int ttl, long timeStamp, Record.Source source) -
Method Summary
-
Field Details
-
TTL_MIN_SECONDS
public static final int TTL_MIN_SECONDS- See Also:
- Constant Field Values
-
TYPE_A
public static final int TYPE_AA 记录 类型- See Also:
- Constant Field Values
-
TYPE_CNAME
public static final int TYPE_CNAMECName 类型- See Also:
- Constant Field Values
-
value
public final java.lang.String value具体的值,A 记录时为IP,CName时为指向的域名 -
type
public final int type记录类型,A或者CName -
ttl
public final int ttlTTL dns结果缓存时间 -
timeStamp
public final long timeStamp时间戳,用来判断超时 -
source
记录来源 httpDns或者System
-
-
Constructor Details
-
Method Details