Package io.netty.handler.codec.dns
Interface DnsRecord
-
- All Known Subinterfaces:
DnsOptEcsRecord,DnsOptPseudoRecord,DnsPtrRecord,DnsQuestion,DnsRawRecord
- All Known Implementing Classes:
AbstractDnsOptPseudoRrRecord,AbstractDnsRecord,DefaultDnsOptEcsRecord,DefaultDnsPtrRecord,DefaultDnsQuestion,DefaultDnsRawRecord
public interface DnsRecordA DNS resource record.
-
-
Field Summary
Fields Modifier and Type Field Description static intCLASS_ANYDNS resource record class:ANYstatic intCLASS_CHAOSDNS resource record class:CHAOSstatic intCLASS_CSNETDNS resource record class:CSNETstatic intCLASS_HESIODDNS resource record class:HESIODstatic intCLASS_INDNS resource record class:INstatic intCLASS_NONEDNS resource record class:NONE
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description intdnsClass()Returns the class of this resource record.java.lang.Stringname()Returns the name of this resource record.longtimeToLive()Returns the time to live after reading for this resource record.DnsRecordTypetype()Returns the type of this resource record.
-
-
-
Field Detail
-
CLASS_IN
static final int CLASS_IN
DNS resource record class:IN- See Also:
- Constant Field Values
-
CLASS_CSNET
static final int CLASS_CSNET
DNS resource record class:CSNET- See Also:
- Constant Field Values
-
CLASS_CHAOS
static final int CLASS_CHAOS
DNS resource record class:CHAOS- See Also:
- Constant Field Values
-
CLASS_HESIOD
static final int CLASS_HESIOD
DNS resource record class:HESIOD- See Also:
- Constant Field Values
-
CLASS_NONE
static final int CLASS_NONE
DNS resource record class:NONE- See Also:
- Constant Field Values
-
CLASS_ANY
static final int CLASS_ANY
DNS resource record class:ANY- See Also:
- Constant Field Values
-
-
Method Detail
-
name
java.lang.String name()
Returns the name of this resource record.
-
type
DnsRecordType type()
Returns the type of this resource record.
-
dnsClass
int dnsClass()
Returns the class of this resource record.- Returns:
- the class value, usually one of the following:
-
timeToLive
long timeToLive()
Returns the time to live after reading for this resource record.
-
-