DnsRawRecord implementation.
| Access | Constructor and Description |
|---|---|
| public | DefaultDnsRawRecord(String
the domain name name, DnsRecordType the type of the record type, long the TTL value of the record timeToLive, Buffer content)Creates a new |
| public | DefaultDnsRawRecord(String
the domain name name, DnsRecordType the type of the record type, int the class of the record, usually one of the following:
dnsClass, long the TTL value of the record timeToLive, Buffer content)Creates a new record. |
| public | DefaultDnsRawRecord(String name, DnsRecordType type, int dnsClass, long timeToLive, Send<Buffer> content)
|
| Modifier and Type | Method and Description |
|---|---|
| public void | |
| public Buffer | content()
Implements io. Buffer backing this raw DNS record.
|
| public DnsRawRecord | copy()
Implements io. |
| public boolean | |
| public DnsRawRecord | |
| public Send | send()
Implements io. |
| public String | toString()
Overrides io. |
| public DnsRawRecord | touch(Object
An optional hint about this access and its context. May be hint)null.Implements io. |
| content | back to summary |
|---|---|
| private final Buffer content | |
| DefaultDnsRawRecord | back to summary |
|---|---|
| public DefaultDnsRawRecord(String name, DnsRecordType type, long timeToLive, Buffer content) Creates a new
| |
| DefaultDnsRawRecord | back to summary |
|---|---|
| public DefaultDnsRawRecord(String name, DnsRecordType type, int dnsClass, long timeToLive, Buffer content) Creates a new record.
| |
| DefaultDnsRawRecord | back to summary |
|---|---|
| public DefaultDnsRawRecord(String name, DnsRecordType type, int dnsClass, long timeToLive, Send<Buffer> content) | |
| close | back to summary |
|---|---|
| public void close() Implements io. Doc from io. Close the resource, making it inaccessible. Note, this method is not thread-safe unless otherwise specified.
| |
| content | back to summary |
|---|---|
| public Buffer content() Implements io. Doc from io. Get a reference to the | |
| copy | back to summary |
|---|---|
| public DnsRawRecord copy() Implements io. Doc from io. Returns a copy of this record object. Immutable record objects may return themselves.
| |
| isAccessible | back to summary |
|---|---|
| public boolean isAccessible() Implements io. Doc from io. Check if this object is accessible. | |
| replace | back to summary |
|---|---|
| public DnsRawRecord replace(Buffer content) | |
| send | back to summary |
|---|---|
| public Send Implements io. Doc from io. Send this object instance to another Thread, transferring the ownership to the recipient. The object must be in a state where it can be sent, which includes at least being accessible. When sent, this instance will immediately become inaccessible, as if by closing it. All attempts at accessing an object that has been sent, even if that object has not yet been received, should cause an exception to be thrown.
Calling
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides io. Doc from java. Returns a string representation of the object. | |
| touch | back to summary |
|---|---|
| public DnsRawRecord touch(Object hint) Implements io. Doc from io. 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.
| |