@UnstableApi public abstract class AbstractDnsRecord extends java.lang.Object implements DnsRecord
DnsRecord.CLASS_ANY, CLASS_CHAOS, CLASS_CSNET, CLASS_HESIOD, CLASS_IN, CLASS_NONE| 限定符 | 构造器和说明 |
|---|---|
protected |
AbstractDnsRecord(java.lang.String name,
DnsRecordType type,
int dnsClass,
long timeToLive)
Creates a new record.
|
protected |
AbstractDnsRecord(java.lang.String name,
DnsRecordType type,
long timeToLive)
Creates a new
IN-class record. |
| 限定符和类型 | 方法和说明 |
|---|---|
int |
dnsClass()
Returns the class of this resource record.
|
boolean |
equals(java.lang.Object obj) |
int |
hashCode() |
java.lang.String |
name()
Returns the name of this resource record.
|
long |
timeToLive()
Returns the time to live after reading for this resource record.
|
java.lang.String |
toString() |
DnsRecordType |
type()
Returns the type of this resource record.
|
protected AbstractDnsRecord(java.lang.String name,
DnsRecordType type,
long timeToLive)
IN-class record.name - the domain nametype - the type of the recordtimeToLive - the TTL value of the recordprotected AbstractDnsRecord(java.lang.String name,
DnsRecordType type,
int dnsClass,
long timeToLive)
name - the domain nametype - the type of the recorddnsClass - the class of the record, usually one of the following:
timeToLive - the TTL value of the recordpublic java.lang.String name()
DnsRecordpublic DnsRecordType type()
DnsRecordpublic int dnsClass()
DnsRecordpublic long timeToLive()
DnsRecordtimeToLive 在接口中 DnsRecordpublic boolean equals(java.lang.Object obj)
equals 在类中 java.lang.Objectpublic int hashCode()
hashCode 在类中 java.lang.Objectpublic java.lang.String toString()
toString 在类中 java.lang.Object