Interface AddressedEnvelope<M, A extends SocketAddress>

Type Parameters:
M - the type of the wrapped message
A - the type of the address
All Superinterfaces:
ReferenceCounted
All Known Implementing Classes:
DatagramDnsQuery, DatagramDnsResponse, DatagramPacket, DefaultAddressedEnvelope, DomainDatagramPacket, SegmentedDatagramPacket, SegmentedDatagramPacket

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

    Modifier and Type
    Method
    Description
    Returns the message wrapped by this envelope message.
    Returns the address of the recipient of this message.
    Increases the reference count by 1.
    retain(int increment)
    Increases the reference count by the specified increment.
    Returns the address of the sender of this message.
    Records the current access location of this object for debugging purposes.
    touch(Object hint)
    Records the current access location of this object with an additional arbitrary information for debugging purposes.

    Methods inherited from interface ReferenceCounted

    refCnt, release, release
    Modifier and Type
    Method
    Description
    int
    Returns the reference count of this object.
    boolean
    Decreases the reference count by 1 and deallocates this object if the reference count reaches at 0.
    boolean
    release(int decrement)
    Decreases the reference count by the specified decrement and deallocates this object if the reference count reaches at 0.
  • Method Details