@UnstableApi public abstract class AbstractDnsRecord extends Object implements DnsRecord
DnsRecord
.CLASS_ANY, CLASS_CHAOS, CLASS_CSNET, CLASS_HESIOD, CLASS_IN, CLASS_NONE
Modifier | Constructor and Description |
---|---|
protected |
AbstractDnsRecord(String name,
DnsRecordType type,
int dnsClass,
long timeToLive)
Creates a new record.
|
protected |
AbstractDnsRecord(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(Object obj) |
int |
hashCode() |
String |
name()
Returns the name of this resource record.
|
long |
timeToLive()
Returns the time to live after reading for this resource record.
|
String |
toString() |
DnsRecordType |
type()
Returns the type of this resource record.
|
protected AbstractDnsRecord(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(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 String name()
DnsRecord
public DnsRecordType type()
DnsRecord
public int dnsClass()
DnsRecord
public long timeToLive()
DnsRecord
timeToLive
in interface DnsRecord
Copyright © 2008–2017 The Netty Project. All rights reserved.