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 class  Record.Source  
  • Field Summary

    Fields 
    Modifier and Type Field Description
    Record.Source source
    记录来源 httpDns或者System
    long timeStamp
    时间戳,用来判断超时
    int ttl
    TTL dns结果缓存时间
    static int TTL_MIN_SECONDS  
    int type
    记录类型,A或者CName
    static int TYPE_A
    A 记录 类型
    static int TYPE_CNAME
    CName 类型
    java.lang.String value
    具体的值,A 记录时为IP,CName时为指向的域名
  • Constructor Summary

    Constructors 
    Constructor Description
    Record​(java.lang.String value, int type, int ttl, long timeStamp, Record.Source source)  
  • Method Summary

    Modifier and Type Method Description
    boolean equals​(java.lang.Object o)  
    boolean isA()  
    boolean isCname()  
    boolean isExpired()  
    boolean isExpired​(long time)  

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

  • Constructor Details

    • Record

      public Record​(java.lang.String value, int type, int ttl, long timeStamp, Record.Source source)
  • Method Details

    • equals

      public boolean equals​(java.lang.Object o)
      Overrides:
      equals in class java.lang.Object
    • isA

      public boolean isA()
    • isCname

      public boolean isCname()
    • isExpired

      public boolean isExpired()
    • isExpired

      public boolean isExpired​(long time)