Package io.netty.handler.codec.dns
Class DefaultDnsRawRecord
- java.lang.Object
-
- io.netty.handler.codec.dns.AbstractDnsRecord
-
- io.netty.handler.codec.dns.DefaultDnsRawRecord
-
- All Implemented Interfaces:
io.netty.buffer.ByteBufHolder,DnsRawRecord,DnsRecord,io.netty.util.ReferenceCounted
public class DefaultDnsRawRecord extends AbstractDnsRecord implements DnsRawRecord
The defaultDnsRawRecordimplementation.
-
-
Field Summary
-
Fields inherited from interface io.netty.handler.codec.dns.DnsRecord
CLASS_ANY, CLASS_CHAOS, CLASS_CSNET, CLASS_HESIOD, CLASS_IN, CLASS_NONE
-
-
Constructor Summary
Constructors Constructor Description DefaultDnsRawRecord(String name, DnsRecordType type, int dnsClass, long timeToLive, io.netty.buffer.ByteBuf content)Creates a new record.DefaultDnsRawRecord(String name, DnsRecordType type, long timeToLive, io.netty.buffer.ByteBuf content)Creates a newIN-classrecord.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description io.netty.buffer.ByteBufcontent()DnsRawRecordcopy()DnsRawRecordduplicate()intrefCnt()booleanrelease()booleanrelease(int decrement)DnsRawRecordreplace(io.netty.buffer.ByteBuf content)DnsRawRecordretain()DnsRawRecordretain(int increment)DnsRawRecordretainedDuplicate()StringtoString()DnsRawRecordtouch()DnsRawRecordtouch(Object hint)-
Methods inherited from class io.netty.handler.codec.dns.AbstractDnsRecord
dnsClass, equals, hashCode, name, timeToLive, type
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface io.netty.handler.codec.dns.DnsRecord
dnsClass, name, timeToLive, type
-
-
-
-
Constructor Detail
-
DefaultDnsRawRecord
public DefaultDnsRawRecord(String name, DnsRecordType type, long timeToLive, io.netty.buffer.ByteBuf content)
Creates a newIN-classrecord.- Parameters:
name- the domain nametype- the type of the recordtimeToLive- the TTL value of the record
-
DefaultDnsRawRecord
public DefaultDnsRawRecord(String name, DnsRecordType type, int dnsClass, long timeToLive, io.netty.buffer.ByteBuf content)
Creates a new record.- Parameters:
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 record
-
-
Method Detail
-
content
public io.netty.buffer.ByteBuf content()
- Specified by:
contentin interfaceio.netty.buffer.ByteBufHolder
-
copy
public DnsRawRecord copy()
- Specified by:
copyin interfaceio.netty.buffer.ByteBufHolder- Specified by:
copyin interfaceDnsRawRecord
-
duplicate
public DnsRawRecord duplicate()
- Specified by:
duplicatein interfaceio.netty.buffer.ByteBufHolder- Specified by:
duplicatein interfaceDnsRawRecord
-
retainedDuplicate
public DnsRawRecord retainedDuplicate()
- Specified by:
retainedDuplicatein interfaceio.netty.buffer.ByteBufHolder- Specified by:
retainedDuplicatein interfaceDnsRawRecord
-
replace
public DnsRawRecord replace(io.netty.buffer.ByteBuf content)
- Specified by:
replacein interfaceio.netty.buffer.ByteBufHolder- Specified by:
replacein interfaceDnsRawRecord
-
refCnt
public int refCnt()
- Specified by:
refCntin interfaceio.netty.util.ReferenceCounted
-
retain
public DnsRawRecord retain()
- Specified by:
retainin interfaceio.netty.buffer.ByteBufHolder- Specified by:
retainin interfaceDnsRawRecord- Specified by:
retainin interfaceio.netty.util.ReferenceCounted
-
retain
public DnsRawRecord retain(int increment)
- Specified by:
retainin interfaceio.netty.buffer.ByteBufHolder- Specified by:
retainin interfaceDnsRawRecord- Specified by:
retainin interfaceio.netty.util.ReferenceCounted
-
release
public boolean release()
- Specified by:
releasein interfaceio.netty.util.ReferenceCounted
-
release
public boolean release(int decrement)
- Specified by:
releasein interfaceio.netty.util.ReferenceCounted
-
touch
public DnsRawRecord touch()
- Specified by:
touchin interfaceio.netty.buffer.ByteBufHolder- Specified by:
touchin interfaceDnsRawRecord- Specified by:
touchin interfaceio.netty.util.ReferenceCounted
-
touch
public DnsRawRecord touch(Object hint)
- Specified by:
touchin interfaceio.netty.buffer.ByteBufHolder- Specified by:
touchin interfaceDnsRawRecord- Specified by:
touchin interfaceio.netty.util.ReferenceCounted
-
toString
public String toString()
- Overrides:
toStringin classAbstractDnsRecord
-
-