@UnstableApi public abstract class AbstractDnsRecord extends java.lang.Object implements DnsRecord
DnsRecord.CLASS_ANY, CLASS_CHAOS, CLASS_CSNET, CLASS_HESIOD, CLASS_IN, CLASS_NONE| Modifier | Constructor and Description |
|---|---|
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. |
| Modifier and Type | Method and Description |
|---|---|
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 in interface DnsRecordpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.ObjectCopyright © 2008–2019 The Netty Project. All rights reserved.