Module io.netty5.transport
Package io.netty5.channel
Interface AddressedEnvelope<M,A extends SocketAddress>
-
- Type Parameters:
M
- the type of the wrapped messageA
- the type of the address
- All Known Implementing Classes:
BufferAddressedEnvelope
,DatagramDnsQuery
,DatagramDnsResponse
,DatagramPacket
,DefaultAddressedEnvelope
,DefaultBufferAddressedEnvelope
,SegmentedDatagramPacket
public interface AddressedEnvelope<M,A extends SocketAddress>
A message that wraps another message with a sender address and a recipient address.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description M
content()
Returns the message wrapped by this envelope message.A
recipient()
Returns the address of the recipient of this message.A
sender()
Returns the address of the sender of this message.
-