@UnstableApi public class DefaultDnsRawRecord extends AbstractDnsRecord implements DnsRawRecord
DnsRawRecord
implementation.CLASS_ANY, CLASS_CHAOS, CLASS_CSNET, CLASS_HESIOD, CLASS_IN, CLASS_NONE
Constructor and 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 new
IN-class record. |
Modifier and Type | Method and Description |
---|---|
io.netty.buffer.ByteBuf |
content() |
DnsRawRecord |
copy() |
DnsRawRecord |
duplicate() |
int |
refCnt() |
boolean |
release() |
boolean |
release(int decrement) |
DnsRawRecord |
replace(io.netty.buffer.ByteBuf content) |
DnsRawRecord |
retain() |
DnsRawRecord |
retain(int increment) |
DnsRawRecord |
retainedDuplicate() |
String |
toString() |
DnsRawRecord |
touch() |
DnsRawRecord |
touch(Object hint) |
dnsClass, equals, hashCode, name, timeToLive, type
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
dnsClass, name, timeToLive, type
public DefaultDnsRawRecord(String name, DnsRecordType type, long timeToLive, io.netty.buffer.ByteBuf content)
IN-class
record.name
- the domain nametype
- the type of the recordtimeToLive
- the TTL value of the recordpublic DefaultDnsRawRecord(String name, DnsRecordType type, int dnsClass, long timeToLive, io.netty.buffer.ByteBuf content)
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 recordpublic io.netty.buffer.ByteBuf content()
content
in interface io.netty.buffer.ByteBufHolder
public DnsRawRecord copy()
copy
in interface io.netty.buffer.ByteBufHolder
copy
in interface DnsRawRecord
public DnsRawRecord duplicate()
duplicate
in interface io.netty.buffer.ByteBufHolder
duplicate
in interface DnsRawRecord
public DnsRawRecord retainedDuplicate()
retainedDuplicate
in interface io.netty.buffer.ByteBufHolder
retainedDuplicate
in interface DnsRawRecord
public DnsRawRecord replace(io.netty.buffer.ByteBuf content)
replace
in interface io.netty.buffer.ByteBufHolder
replace
in interface DnsRawRecord
public int refCnt()
refCnt
in interface io.netty.util.ReferenceCounted
public DnsRawRecord retain()
retain
in interface io.netty.buffer.ByteBufHolder
retain
in interface DnsRawRecord
retain
in interface io.netty.util.ReferenceCounted
public DnsRawRecord retain(int increment)
retain
in interface io.netty.buffer.ByteBufHolder
retain
in interface DnsRawRecord
retain
in interface io.netty.util.ReferenceCounted
public boolean release()
release
in interface io.netty.util.ReferenceCounted
public boolean release(int decrement)
release
in interface io.netty.util.ReferenceCounted
public DnsRawRecord touch()
touch
in interface io.netty.buffer.ByteBufHolder
touch
in interface DnsRawRecord
touch
in interface io.netty.util.ReferenceCounted
public DnsRawRecord touch(Object hint)
touch
in interface io.netty.buffer.ByteBufHolder
touch
in interface DnsRawRecord
touch
in interface io.netty.util.ReferenceCounted
public String toString()
toString
in class AbstractDnsRecord
Copyright © 2008–2021 The Netty Project. All rights reserved.