-
- All Superinterfaces:
AutoCloseable,DnsRecord,Resource<DnsRawRecord>
- All Known Implementing Classes:
DefaultDnsRawRecord
@UnstableApi public interface DnsRawRecord extends DnsRecord, Resource<DnsRawRecord>
A genericDnsRecordthat 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 Buffercontent()Get a reference to theBufferbacking this raw DNS record.DnsRawRecordcopy()Returns a copy of this record object.DnsRawRecordtouch(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 theBufferbacking 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
Bufferinstance backing this raw DNS record.
-
touch
DnsRawRecord touch(Object hint)
Description copied from interface:ResourceRecord 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:
touchin 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:DnsRecordReturns a copy of this record object. Immutable record objects may return themselves.
-
-