Class DnsNameResolver.AddressedEnvelopeAdapter

    • Field Summary

      Fields 
      Modifier and Type Field Description
      private java.net.InetSocketAddress recipient  
      private DnsResponse response  
      private java.net.InetSocketAddress sender  
    • Constructor Summary

      Constructors 
      Constructor Description
      AddressedEnvelopeAdapter​(java.net.InetSocketAddress sender, java.net.InetSocketAddress recipient, DnsResponse response)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      DnsResponse content()
      Returns the message wrapped by this envelope message.
      boolean equals​(java.lang.Object obj)  
      int hashCode()  
      java.net.InetSocketAddress recipient()
      Returns the address of the recipient of this message.
      int refCnt()
      Returns the reference count of this object.
      boolean release()
      Decreases the reference count by 1 and deallocates this object if the reference count reaches at 0.
      boolean release​(int decrement)
      Decreases the reference count by the specified decrement and deallocates this object if the reference count reaches at 0.
      AddressedEnvelope<DnsResponse,​java.net.InetSocketAddress> retain()
      Increases the reference count by 1.
      AddressedEnvelope<DnsResponse,​java.net.InetSocketAddress> retain​(int increment)
      Increases the reference count by the specified increment.
      java.net.InetSocketAddress sender()
      Returns the address of the sender of this message.
      AddressedEnvelope<DnsResponse,​java.net.InetSocketAddress> touch()
      Records the current access location of this object for debugging purposes.
      AddressedEnvelope<DnsResponse,​java.net.InetSocketAddress> touch​(java.lang.Object hint)
      Records the current access location of this object with an additional arbitrary information for debugging purposes.
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • sender

        private final java.net.InetSocketAddress sender
      • recipient

        private final java.net.InetSocketAddress recipient
    • Constructor Detail

      • AddressedEnvelopeAdapter

        AddressedEnvelopeAdapter​(java.net.InetSocketAddress sender,
                                 java.net.InetSocketAddress recipient,
                                 DnsResponse response)