Class DnsQueryContext.AddressedEnvelopeAdapter
java.lang.Object
io.netty.resolver.dns.DnsQueryContext.AddressedEnvelopeAdapter
- All Implemented Interfaces:
AddressedEnvelope<DnsResponse, InetSocketAddress>, ReferenceCounted
- Enclosing class:
DnsQueryContext
private static final class DnsQueryContext.AddressedEnvelopeAdapter
extends Object
implements AddressedEnvelope<DnsResponse, InetSocketAddress>
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final InetSocketAddressprivate final DnsResponseprivate final InetSocketAddress -
Constructor Summary
ConstructorsConstructorDescriptionAddressedEnvelopeAdapter(InetSocketAddress sender, InetSocketAddress recipient, DnsResponse response) -
Method Summary
Modifier and TypeMethodDescriptioncontent()Returns the message wrapped by this envelope message.booleaninthashCode()Returns the address of the recipient of this message.intrefCnt()Returns the reference count of this object.booleanrelease()Decreases the reference count by1and deallocates this object if the reference count reaches at0.booleanrelease(int decrement) Decreases the reference count by the specifieddecrementand deallocates this object if the reference count reaches at0.retain()Increases the reference count by1.retain(int increment) Increases the reference count by the specifiedincrement.sender()Returns the address of the sender of this message.touch()Records the current access location of this object for debugging purposes.Records the current access location of this object with an additional arbitrary information for debugging purposes.
-
Field Details
-
sender
-
recipient
-
response
-
-
Constructor Details
-
AddressedEnvelopeAdapter
AddressedEnvelopeAdapter(InetSocketAddress sender, InetSocketAddress recipient, DnsResponse response)
-
-
Method Details
-
content
Description copied from interface:AddressedEnvelopeReturns the message wrapped by this envelope message.- Specified by:
contentin interfaceAddressedEnvelope<DnsResponse, InetSocketAddress>
-
sender
Description copied from interface:AddressedEnvelopeReturns the address of the sender of this message.- Specified by:
senderin interfaceAddressedEnvelope<DnsResponse, InetSocketAddress>
-
recipient
Description copied from interface:AddressedEnvelopeReturns the address of the recipient of this message.- Specified by:
recipientin interfaceAddressedEnvelope<DnsResponse, InetSocketAddress>
-
retain
Description copied from interface:ReferenceCountedIncreases the reference count by1.- Specified by:
retainin interfaceAddressedEnvelope<DnsResponse, InetSocketAddress>- Specified by:
retainin interfaceReferenceCounted
-
retain
Description copied from interface:ReferenceCountedIncreases the reference count by the specifiedincrement.- Specified by:
retainin interfaceAddressedEnvelope<DnsResponse, InetSocketAddress>- Specified by:
retainin interfaceReferenceCounted
-
touch
Description copied from interface:ReferenceCountedRecords the current access location of this object for debugging purposes. If this object is determined to be leaked, the information recorded by this operation will be provided to you viaResourceLeakDetector. This method is a shortcut totouch(null).- Specified by:
touchin interfaceAddressedEnvelope<DnsResponse, InetSocketAddress>- Specified by:
touchin interfaceReferenceCounted
-
touch
Description copied from interface:ReferenceCountedRecords the current access location of this object with an additional arbitrary information for debugging purposes. If this object is determined to be leaked, the information recorded by this operation will be provided to you viaResourceLeakDetector.- Specified by:
touchin interfaceAddressedEnvelope<DnsResponse, InetSocketAddress>- Specified by:
touchin interfaceReferenceCounted
-
refCnt
public int refCnt()Description copied from interface:ReferenceCountedReturns the reference count of this object. If0, it means this object has been deallocated.- Specified by:
refCntin interfaceReferenceCounted
-
release
public boolean release()Description copied from interface:ReferenceCountedDecreases the reference count by1and deallocates this object if the reference count reaches at0.- Specified by:
releasein interfaceReferenceCounted- Returns:
trueif and only if the reference count became0and this object has been deallocated
-
release
public boolean release(int decrement) Description copied from interface:ReferenceCountedDecreases the reference count by the specifieddecrementand deallocates this object if the reference count reaches at0.- Specified by:
releasein interfaceReferenceCounted- Returns:
trueif and only if the reference count became0and this object has been deallocated
-
equals
-
hashCode
-