Interface AddressedEnvelope<M, A extends SocketAddress>
- Type Parameters:
M- the type of the wrapped messageA- the type of the address
- All Superinterfaces:
ReferenceCounted
- All Known Implementing Classes:
DatagramDnsQuery, DatagramDnsResponse, DatagramPacket, DefaultAddressedEnvelope, DomainDatagramPacket, SegmentedDatagramPacket, SegmentedDatagramPacket
A message that wraps another message with a sender address and a recipient address.
-
Method Summary
Modifier and TypeMethodDescriptioncontent()Returns the message wrapped by this envelope message.Returns the address of the recipient of this message.retain()Increases the reference count by1.retain(int increment) Increases the reference count by the specifiedincrement.sender()Returns the address of the sender of this message.touch()Records the current access location of this object for debugging purposes.Records the current access location of this object with an additional arbitrary information for debugging purposes.Methods inherited from interface ReferenceCounted
refCnt, release, release
-
Method Details
-
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()Description copied from interface:ReferenceCountedIncreases the reference count by1.- Specified by:
retainin interfaceReferenceCounted
-
retain
Description copied from interface:ReferenceCountedIncreases the reference count by the specifiedincrement.- Specified by:
retainin interfaceReferenceCounted
-
touch
AddressedEnvelope<M,A> touch()Description copied from interface:ReferenceCountedRecords the current access location of this object for debugging purposes. If this object is determined to be leaked, the information recorded by this operation will be provided to you viaResourceLeakDetector. This method is a shortcut totouch(null).- Specified by:
touchin interfaceReferenceCounted
-
touch
Description copied from interface:ReferenceCountedRecords the current access location of this object with an additional arbitrary information for debugging purposes. If this object is determined to be leaked, the information recorded by this operation will be provided to you viaResourceLeakDetector.- Specified by:
touchin interfaceReferenceCounted
-