public final class UdtMessage extends DefaultByteBufHolder
TypeUDT.DATAGRAM
messages.NioUdtProvider#MESSAGE_CONNECTOR}
,
NioUdtProvider#MESSAGE_RENDEZVOUS}
Constructor and Description |
---|
UdtMessage(ByteBuf data) |
Modifier and Type | Method and Description |
---|---|
UdtMessage |
copy()
Create a deep copy of this
ByteBufHolder . |
UdtMessage |
duplicate()
Duplicate the
ByteBufHolder . |
UdtMessage |
retain()
Increases the reference count by
1 . |
UdtMessage |
retain(int increment)
Increases the reference count by the specified
increment . |
UdtMessage |
touch()
Records the current access location of this object for debugging purposes.
|
UdtMessage |
touch(Object hint)
Records the current access location of this object with an additonal arbitrary information for debugging
purposes.
|
public UdtMessage(ByteBuf data)
public UdtMessage copy()
ByteBufHolder
ByteBufHolder
.copy
in interface ByteBufHolder
copy
in class DefaultByteBufHolder
public UdtMessage duplicate()
ByteBufHolder
ByteBufHolder
. Be aware that this will not automatically call ByteBufHolder.retain()
.duplicate
in interface ByteBufHolder
duplicate
in class DefaultByteBufHolder
public UdtMessage retain()
ReferenceCounted
1
.retain
in interface ByteBufHolder
retain
in interface ReferenceCounted
retain
in class DefaultByteBufHolder
public UdtMessage retain(int increment)
ReferenceCounted
increment
.retain
in interface ByteBufHolder
retain
in interface ReferenceCounted
retain
in class DefaultByteBufHolder
public UdtMessage touch()
ReferenceCounted
ResourceLeakDetector
. This method is a shortcut to touch(null)
.touch
in interface ByteBufHolder
touch
in interface ReferenceCounted
touch
in class DefaultByteBufHolder
public UdtMessage touch(Object hint)
ReferenceCounted
ResourceLeakDetector
.touch
in interface ByteBufHolder
touch
in interface ReferenceCounted
touch
in class DefaultByteBufHolder
Copyright © 2008–2015 The Netty Project. All rights reserved.