-
- All Superinterfaces:
AutoCloseable
,DnsRecord
,Resource<DnsRawRecord>
- All Known Implementing Classes:
DefaultDnsRawRecord
@UnstableApi public interface DnsRawRecord extends DnsRecord, Resource<DnsRawRecord>
A genericDnsRecord
that contains an undecodedRDATA
.
-
-
Field Summary
-
Fields inherited from interface io.netty5.handler.codec.dns.DnsRecord
CLASS_ANY, CLASS_CHAOS, CLASS_CSNET, CLASS_HESIOD, CLASS_IN, CLASS_NONE
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Buffer
content()
Get a reference to theBuffer
backing this raw DNS record.DnsRawRecord
copy()
Returns a copy of this record object.DnsRawRecord
touch(Object hint)
Record the current access location for debugging purposes.-
Methods inherited from interface io.netty5.handler.codec.dns.DnsRecord
dnsClass, name, timeToLive, type
-
Methods inherited from interface io.netty5.util.Resource
close, isAccessible, send
-
-
-
-
Method Detail
-
content
Buffer content()
Get a reference to theBuffer
backing this raw DNS record. Care must be taken with the returned buffer, as changes to the buffer offsets or its contents will reflect on the raw DNS record contents.- Returns:
- The
Buffer
instance backing this raw DNS record.
-
touch
DnsRawRecord touch(Object hint)
Description copied from interface:Resource
Record the current access location for debugging purposes. This information may be included if the resource throws a life-cycle related exception, or if it leaks. If this resource has already been closed, then this method has no effect.- Specified by:
touch
in interfaceResource<DnsRawRecord>
- Parameters:
hint
- An optional hint about this access and its context. May benull
.- Returns:
- This resource instance.
-
copy
DnsRawRecord copy()
Description copied from interface:DnsRecord
Returns a copy of this record object. Immutable record objects may return themselves.
-
-