Top Description Fields Methods
io.netty5.handler.codec.dns

public Interface DnsRawRecord

extends DnsRecord, Resource<DnsRawRecord>
Known Direct Implementers
io.netty5.handler.codec.dns.DefaultDnsRawRecord
Annotations
@UnstableApi
Imports
io.netty5.buffer.Buffer, io.netty5.util.Resource, io.netty5.util.internal.UnstableApi

A generic DnsRecord that contains an undecoded RDATA.

Field Summary

Inherited from io.netty5.handler.codec.dns.DnsRecord:
CLASS_ANYCLASS_CHAOSCLASS_CSNETCLASS_HESIODCLASS_INCLASS_NONE

Method Summary

Modifier and TypeMethod and Description
public Buffer

Returns:

The Buffer instance backing this raw DNS record.
content
()

Get a reference to the Buffer backing this raw DNS record.

public DnsRawRecord
copy()

Redeclares io.netty5.handler.codec.dns.DnsRecord.copy.

Returns a copy of this record object.
public DnsRawRecord
touch(Object
An optional hint about this access and its context. May be null.
hint
)

Redeclares as abstract: io.netty5.util.Resource.touch.

Record the current access location for debugging purposes.
Inherited from io.netty5.handler.codec.dns.DnsRecord:
dnsClassnametimeToLivetype
Inherited from io.netty5.util.Resource:
closedisposeisAccessibleisAccessiblesendtouch

Method Detail

contentback to summary
public Buffer content()

Get a reference to the Buffer 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:Buffer

The Buffer instance backing this raw DNS record.

copyback to summary
public DnsRawRecord copy()

Redeclares io.netty5.handler.codec.dns.DnsRecord.copy.

Doc from io.netty5.handler.codec.dns.DnsRecord.copy.

Returns a copy of this record object. Immutable record objects may return themselves.

Annotations
@Override
touchback to summary
public DnsRawRecord touch(Object hint)

Redeclares as abstract: io.netty5.util.Resource.touch.

Doc from io.netty5.util.Resource.touch.

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.

Parameters
hint:Object

An optional hint about this access and its context. May be null.

Returns:DnsRawRecord

This resource instance.

Annotations
@Override