Package io.netty.channel
Interface AddressedEnvelope<M,A extends SocketAddress>
-
- Type Parameters:
M- the type of the wrapped messageA- 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.ReferenceCountedA 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 Mcontent()Returns the message wrapped by this envelope message.Arecipient()Returns the address of the recipient of this message.AddressedEnvelope<M,A>retain()AddressedEnvelope<M,A>retain(int increment)Asender()Returns the address of the sender of this message.AddressedEnvelope<M,A>touch()AddressedEnvelope<M,A>touch(Object hint)
-
-
-
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:
retainin interfaceio.netty.util.ReferenceCounted
-
retain
AddressedEnvelope<M,A> retain(int increment)
- Specified by:
retainin interfaceio.netty.util.ReferenceCounted
-
touch
AddressedEnvelope<M,A> touch()
- Specified by:
touchin interfaceio.netty.util.ReferenceCounted
-
touch
AddressedEnvelope<M,A> touch(Object hint)
- Specified by:
touchin interfaceio.netty.util.ReferenceCounted
-
-