M
- the type of the wrapped messageA
- the type of the addresspublic interface AddressedEnvelope<M,A extends SocketAddress> extends ReferenceCounted
Modifier and Type | Method and Description |
---|---|
M |
content()
Returns the message wrapped by this envelope message.
|
A |
recipient()
Returns the address of the recipient of this message.
|
AddressedEnvelope<M,A> |
retain()
Increases the reference count by
1 . |
AddressedEnvelope<M,A> |
retain(int increment)
Increases the reference count by the specified
increment . |
A |
sender()
Returns the address of the sender of this message.
|
AddressedEnvelope<M,A> |
touch()
Records the current access location of this object for debugging purposes.
|
AddressedEnvelope<M,A> |
touch(Object hint)
Records the current access location of this object with an additonal arbitrary information for debugging
purposes.
|
refCnt, release, release
M content()
A sender()
A recipient()
AddressedEnvelope<M,A> retain()
ReferenceCounted
1
.retain
in interface ReferenceCounted
AddressedEnvelope<M,A> retain(int increment)
ReferenceCounted
increment
.retain
in interface ReferenceCounted
AddressedEnvelope<M,A> touch()
ReferenceCounted
ResourceLeakDetector
. This method is a shortcut to touch(null)
.touch
in interface ReferenceCounted
AddressedEnvelope<M,A> touch(Object hint)
ReferenceCounted
ResourceLeakDetector
.touch
in interface ReferenceCounted
Copyright © 2008–2015 The Netty Project. All rights reserved.