Top Description Methods
io.netty.channel

public Interface AddressedEnvelope<M, A extends java.net.SocketAddress>

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

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

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 AddressedEnvelope<M, A>
retain()

Redeclares io.netty.util.ReferenceCounted.retain.

Increases the reference count by 1.
public AddressedEnvelope<M, A>
retain(int increment)

Redeclares io.netty.util.ReferenceCounted.retain.

Increases the reference count by the specified increment.
public A
sender()

Returns the address of the sender of this message.

public AddressedEnvelope<M, A>
touch()

Redeclares io.netty.util.ReferenceCounted.touch.

Records the current access location of this object for debugging purposes.
public AddressedEnvelope<M, A>
touch(Object hint)

Redeclares io.netty.util.ReferenceCounted.touch.

Records the current access location of this object with an additional arbitrary information for debugging purposes.
Inherited from io.netty.util.ReferenceCounted:
refCntreleaserelease

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.

retainback to summary
public AddressedEnvelope<M, A> retain()

Redeclares io.netty.util.ReferenceCounted.retain.

Doc from io.netty.util.ReferenceCounted.retain.

Increases the reference count by 1.

Annotations
@Override
retainback to summary
public AddressedEnvelope<M, A> retain(int increment)

Redeclares io.netty.util.ReferenceCounted.retain.

Doc from io.netty.util.ReferenceCounted.retain.

Increases the reference count by the specified increment.

Annotations
@Override
senderback to summary
public A sender()

Returns the address of the sender of this message.

touchback to summary
public AddressedEnvelope<M, A> touch()

Redeclares io.netty.util.ReferenceCounted.touch.

Doc from io.netty.util.ReferenceCounted.touch.

Records 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 via ResourceLeakDetector. This method is a shortcut to touch(null).

Annotations
@Override
touchback to summary
public AddressedEnvelope<M, A> touch(Object hint)

Redeclares io.netty.util.ReferenceCounted.touch.

Doc from io.netty.util.ReferenceCounted.touch.

Records 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 via ResourceLeakDetector.

Annotations
@Override