Top Description Methods
io.netty5.channel

public Interface AddressedEnvelope<M, A extends SocketAddress>

Known Direct Implementers
io.netty5.channel.DefaultAddressedEnvelope
Type Parameters
<M>
the type of the wrapped message
<A>
the type of the address
Imports
io.netty5.util.ReferenceCounted, .Resource, java.net.SocketAddress

A message that wraps another message with a sender address and a recipient address.

Implementation Note

AddressedEnvelope implementors likely also implement either ReferenceCounted or Resource. Users should be mindful to release or close any address envelopes if that's the case.

Method Summary

Modifier and TypeMethod and Description
public M
content()

Returns the message wrapped by this envelope message.

public A
recipient()

Returns the address of the recipient of this message.

public A
sender()

Returns the address of the sender of this message.

Method Detail

contentback to summary
public M content()

Returns the message wrapped by this envelope message.

recipientback to summary
public A recipient()

Returns the address of the recipient of this message.

senderback to summary
public A sender()

Returns the address of the sender of this message.