类 Record

java.lang.Object
com.qiniu.android.dns.Record

public final class Record
extends java.lang.Object
Created by bailong on 15/6/12.
  • 嵌套类概要

    嵌套类
    修饰符和类型 说明
    static class  Record.Source  
  • 字段概要

    字段
    修饰符和类型 字段 说明
    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时为指向的域名
  • 构造器概要

    构造器
    构造器 说明
    Record​(java.lang.String value, int type, int ttl, long timeStamp, Record.Source source)  
  • 方法概要

    修饰符和类型 方法 说明
    boolean equals​(java.lang.Object o)  
    boolean isA()  
    boolean isCname()  
    boolean isExpired()  
    boolean isExpired​(long time)  

    从类继承的方法 java.lang.Object

    clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 字段详细资料

    • TTL_MIN_SECONDS

      public static final int TTL_MIN_SECONDS
      另请参阅:
      常量字段值
    • TYPE_A

      public static final int TYPE_A
      A 记录 类型
      另请参阅:
      常量字段值
    • TYPE_CNAME

      public static final int TYPE_CNAME
      CName 类型
      另请参阅:
      常量字段值
    • value

      public final java.lang.String value
      具体的值,A 记录时为IP,CName时为指向的域名
    • type

      public final int type
      记录类型,A或者CName
    • ttl

      public final int ttl
      TTL dns结果缓存时间
    • timeStamp

      public final long timeStamp
      时间戳,用来判断超时
    • source

      public final Record.Source source
      记录来源 httpDns或者System
  • 构造器详细资料

    • Record

      public Record​(java.lang.String value, int type, int ttl, long timeStamp, Record.Source source)
  • 方法详细资料

    • equals

      public boolean equals​(java.lang.Object o)
      覆盖:
      equals 在类中 java.lang.Object
    • isA

      public boolean isA()
    • isCname

      public boolean isCname()
    • isExpired

      public boolean isExpired()
    • isExpired

      public boolean isExpired​(long time)