| Modifier and Type | Field and Description |
|---|---|
| private final int |
| Access | Constructor and Description |
|---|---|
| public | SegmentedDatagramPacket(Buffer
The data to send. message, int The (positive) segment size. segmentSize, SocketAddress The recipient address. recipient, SocketAddress The sender address. sender)Create a new segmented datagram packet. |
| public | SegmentedDatagramPacket(Buffer
The data to send. message, int The (positive) segment size. segmentSize, InetSocketAddress The recipient address. recipient)Create a new segmented datagram packet. |
| Modifier and Type | Method and Description |
|---|---|
| public SegmentedDatagramPacket | |
| public int | Returns: size of segments.Return the size of each segment (the last segment can be smaller). |
| public SegmentedDatagramPacket | touch(Object
An optional hint about this access and its context. May be hint)null.Overrides io. Overrides default io. |
| segmentSize | back to summary |
|---|---|
| private final int segmentSize | |
| SegmentedDatagramPacket | back to summary |
|---|---|
| public SegmentedDatagramPacket(Buffer message, int segmentSize, SocketAddress recipient, SocketAddress sender) Create a new segmented datagram packet. The attached message may be sent in multiple segment-sized network packets.
| |
| SegmentedDatagramPacket | back to summary |
|---|---|
| public SegmentedDatagramPacket(Buffer message, int segmentSize, InetSocketAddress recipient) Create a new segmented datagram packet. The attached message may be sent in multiple segment-sized network packets.
| |
| replace | back to summary |
|---|---|
| public SegmentedDatagramPacket replace(Buffer content) Overrides io. Doc from io. Create a new addressed envelope instance, that has the same recipient and sender as this one, but the given content.
| |
| segmentSize | back to summary |
|---|---|
| public int segmentSize() Return the size of each segment (the last segment can be smaller).
| |
| touch | back to summary |
|---|---|
| public SegmentedDatagramPacket touch(Object hint) Overrides io. Overrides default io. Doc from io. Record the current access location for debugging purposes. This information may be included if the resource throws a life-cycle related exception, or if it leaks. If this resource has already been closed, then this method has no effect.
| |