@Deprecated public final class SegmentedDatagramPacket extends SegmentedDatagramPacket
| Constructor and Description |
|---|
SegmentedDatagramPacket(ByteBuf data,
int segmentSize,
InetSocketAddress recipient)
Deprecated.
Create a new instance.
|
SegmentedDatagramPacket(ByteBuf data,
int segmentSize,
InetSocketAddress recipient,
InetSocketAddress sender)
Deprecated.
Create a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
SegmentedDatagramPacket |
copy()
Deprecated.
Creates a deep copy of this
ByteBufHolder. |
SegmentedDatagramPacket |
duplicate()
Deprecated.
Duplicates this
ByteBufHolder. |
static boolean |
isSupported()
Deprecated.
Returns
true if the underlying system supports GSO. |
SegmentedDatagramPacket |
replace(ByteBuf content)
Deprecated.
Returns a new
ByteBufHolder which contains the specified content. |
SegmentedDatagramPacket |
retain()
Deprecated.
Increases the reference count by
1. |
SegmentedDatagramPacket |
retain(int increment)
Deprecated.
Increases the reference count by the specified
increment. |
SegmentedDatagramPacket |
retainedDuplicate()
Deprecated.
Duplicates this
ByteBufHolder. |
SegmentedDatagramPacket |
touch()
Deprecated.
Records the current access location of this object for debugging purposes.
|
SegmentedDatagramPacket |
touch(Object hint)
Deprecated.
Records the current access location of this object with an additional arbitrary information for debugging
purposes.
|
segmentSizecontent, recipient, refCnt, release, release, sender, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitcontentrefCnt, release, releasepublic SegmentedDatagramPacket(ByteBuf data, int segmentSize, InetSocketAddress recipient)
data - the ByteBuf which must be continguous.segmentSize - the segment size.recipient - the recipient.public SegmentedDatagramPacket(ByteBuf data, int segmentSize, InetSocketAddress recipient, InetSocketAddress sender)
data - the ByteBuf which must be continguous.segmentSize - the segment size.recipient - the recipient.public static boolean isSupported()
true if the underlying system supports GSO.public SegmentedDatagramPacket copy()
ByteBufHolderByteBufHolder.copy in interface ByteBufHoldercopy in class SegmentedDatagramPacketpublic SegmentedDatagramPacket duplicate()
ByteBufHolderByteBufHolder. Be aware that this will not automatically call ByteBufHolder.retain().duplicate in interface ByteBufHolderduplicate in class SegmentedDatagramPacketpublic SegmentedDatagramPacket retainedDuplicate()
ByteBufHolderByteBufHolder. This method returns a retained duplicate unlike ByteBufHolder.duplicate().retainedDuplicate in interface ByteBufHolderretainedDuplicate in class SegmentedDatagramPacketByteBuf.retainedDuplicate()public SegmentedDatagramPacket replace(ByteBuf content)
ByteBufHolderByteBufHolder which contains the specified content.replace in interface ByteBufHolderreplace in class SegmentedDatagramPacketpublic SegmentedDatagramPacket retain()
ReferenceCounted1.retain in interface ByteBufHolderretain in interface AddressedEnvelope<ByteBuf,InetSocketAddress>retain in interface ReferenceCountedretain in class SegmentedDatagramPacketpublic SegmentedDatagramPacket retain(int increment)
ReferenceCountedincrement.retain in interface ByteBufHolderretain in interface AddressedEnvelope<ByteBuf,InetSocketAddress>retain in interface ReferenceCountedretain in class SegmentedDatagramPacketpublic SegmentedDatagramPacket touch()
ReferenceCountedResourceLeakDetector. This method is a shortcut to touch(null).touch in interface ByteBufHoldertouch in interface AddressedEnvelope<ByteBuf,InetSocketAddress>touch in interface ReferenceCountedtouch in class SegmentedDatagramPacketpublic SegmentedDatagramPacket touch(Object hint)
ReferenceCountedResourceLeakDetector.touch in interface ByteBufHoldertouch in interface AddressedEnvelope<ByteBuf,InetSocketAddress>touch in interface ReferenceCountedtouch in class SegmentedDatagramPacketCopyright © 2008–2025 The Netty Project. All rights reserved.