Interface AddressedEnvelope<M,​A extends SocketAddress>

  • Type Parameters:
    M - the type of the wrapped message
    A - the type of the address
    All Superinterfaces:
    io.netty.util.ReferenceCounted
    All Known Implementing Classes:
    DatagramPacket, DefaultAddressedEnvelope

    public interface AddressedEnvelope<M,​A extends SocketAddress>
    extends io.netty.util.ReferenceCounted
    A message that wraps another message with a sender address and a recipient address.
    • Method Detail

      • content

        M content()
        Returns the message wrapped by this envelope message.
      • sender

        A sender()
        Returns the address of the sender of this message.
      • recipient

        A recipient()
        Returns the address of the recipient of this message.
      • retain

        AddressedEnvelope<M,​A> retain()
        Specified by:
        retain in interface io.netty.util.ReferenceCounted
      • retain

        AddressedEnvelope<M,​A> retain​(int increment)
        Specified by:
        retain in interface io.netty.util.ReferenceCounted
      • touch

        AddressedEnvelope<M,​A> touch()
        Specified by:
        touch in interface io.netty.util.ReferenceCounted