public class SegmentedDatagramPacket extends DatagramPacket
| Constructor and Description |
|---|
SegmentedDatagramPacket(ByteBuf data,
int segmentSize,
InetSocketAddress recipient)
Create a new instance.
|
SegmentedDatagramPacket(ByteBuf data,
int segmentSize,
InetSocketAddress recipient,
InetSocketAddress sender)
Create a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
SegmentedDatagramPacket |
copy()
Creates a deep copy of this
ByteBufHolder. |
SegmentedDatagramPacket |
duplicate()
Duplicates this
ByteBufHolder. |
SegmentedDatagramPacket |
replace(ByteBuf content)
Returns a new
ByteBufHolder which contains the specified content. |
SegmentedDatagramPacket |
retain()
Increases the reference count by
1. |
SegmentedDatagramPacket |
retain(int increment)
Increases the reference count by the specified
increment. |
SegmentedDatagramPacket |
retainedDuplicate()
Duplicates this
ByteBufHolder. |
int |
segmentSize()
Return the size of each segment (the last segment can be smaller).
|
SegmentedDatagramPacket |
touch()
Records the current access location of this object for debugging purposes.
|
SegmentedDatagramPacket |
touch(Object hint)
Records the current access location of this object with an additional arbitrary information for debugging
purposes.
|
content, 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 int segmentSize()
public SegmentedDatagramPacket copy()
ByteBufHolderByteBufHolder.copy in interface ByteBufHoldercopy in class DatagramPacketpublic SegmentedDatagramPacket duplicate()
ByteBufHolderByteBufHolder. Be aware that this will not automatically call ByteBufHolder.retain().duplicate in interface ByteBufHolderduplicate in class DatagramPacketpublic SegmentedDatagramPacket retainedDuplicate()
ByteBufHolderByteBufHolder. This method returns a retained duplicate unlike ByteBufHolder.duplicate().retainedDuplicate in interface ByteBufHolderretainedDuplicate in class DatagramPacketByteBuf.retainedDuplicate()public SegmentedDatagramPacket replace(ByteBuf content)
ByteBufHolderByteBufHolder which contains the specified content.replace in interface ByteBufHolderreplace in class DatagramPacketpublic SegmentedDatagramPacket retain()
ReferenceCounted1.retain in interface ByteBufHolderretain in interface AddressedEnvelope<ByteBuf,InetSocketAddress>retain in interface ReferenceCountedretain in class DatagramPacketpublic SegmentedDatagramPacket retain(int increment)
ReferenceCountedincrement.retain in interface ByteBufHolderretain in interface AddressedEnvelope<ByteBuf,InetSocketAddress>retain in interface ReferenceCountedretain in class DatagramPacketpublic 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 DatagramPacketpublic SegmentedDatagramPacket touch(Object hint)
ReferenceCountedResourceLeakDetector.touch in interface ByteBufHoldertouch in interface AddressedEnvelope<ByteBuf,InetSocketAddress>touch in interface ReferenceCountedtouch in class DatagramPacketCopyright © 2008–2025 The Netty Project. All rights reserved.