@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.
|
segmentSize
content, recipient, refCnt, release, release, sender, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
content
refCnt, release, release
public 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()
ByteBufHolder
ByteBufHolder
.copy
in interface ByteBufHolder
copy
in class SegmentedDatagramPacket
public SegmentedDatagramPacket duplicate()
ByteBufHolder
ByteBufHolder
. Be aware that this will not automatically call ByteBufHolder.retain()
.duplicate
in interface ByteBufHolder
duplicate
in class SegmentedDatagramPacket
public SegmentedDatagramPacket retainedDuplicate()
ByteBufHolder
ByteBufHolder
. This method returns a retained duplicate unlike ByteBufHolder.duplicate()
.retainedDuplicate
in interface ByteBufHolder
retainedDuplicate
in class SegmentedDatagramPacket
ByteBuf.retainedDuplicate()
public SegmentedDatagramPacket replace(ByteBuf content)
ByteBufHolder
ByteBufHolder
which contains the specified content
.replace
in interface ByteBufHolder
replace
in class SegmentedDatagramPacket
public SegmentedDatagramPacket retain()
ReferenceCounted
1
.retain
in interface ByteBufHolder
retain
in interface AddressedEnvelope<ByteBuf,InetSocketAddress>
retain
in interface ReferenceCounted
retain
in class SegmentedDatagramPacket
public SegmentedDatagramPacket retain(int increment)
ReferenceCounted
increment
.retain
in interface ByteBufHolder
retain
in interface AddressedEnvelope<ByteBuf,InetSocketAddress>
retain
in interface ReferenceCounted
retain
in class SegmentedDatagramPacket
public SegmentedDatagramPacket touch()
ReferenceCounted
ResourceLeakDetector
. This method is a shortcut to touch(null)
.touch
in interface ByteBufHolder
touch
in interface AddressedEnvelope<ByteBuf,InetSocketAddress>
touch
in interface ReferenceCounted
touch
in class SegmentedDatagramPacket
public SegmentedDatagramPacket touch(Object hint)
ReferenceCounted
ResourceLeakDetector
.touch
in interface ByteBufHolder
touch
in interface AddressedEnvelope<ByteBuf,InetSocketAddress>
touch
in interface ReferenceCounted
touch
in class SegmentedDatagramPacket
Copyright © 2008–2024 The Netty Project. All rights reserved.