Top Fields Constructors Methods
io.rsocket.core

pack-priv Class FragmentationUtils

extends Object
Class Inheritance
Imports
io.netty.buffer.ByteBuf, .ByteBufAllocator, .Unpooled, io.netty.util.IllegalReferenceCountException, io.rsocket.frame.FrameHeaderCodec, .FrameLengthCodec, .FrameType, .PayloadFrameCodec, .RequestChannelFrameCodec, .RequestFireAndForgetFrameCodec, .RequestResponseFrameCodec, .RequestStreamFrameCodec, reactor.util.annotation.Nullable

Field Summary

Modifier and TypeField and Description
pack-priv static final int
pack-priv static final int
pack-priv static final int
pack-priv static final int
pack-priv static final int

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
pack-priv static int
assertMtu(int mtu)

pack-priv static ByteBuf
encodeFirstFragment(ByteBufAllocator allocator, int mtu, FrameType frameType, int streamId, boolean hasMetadata, ByteBuf metadata, ByteBuf data)

pack-priv static ByteBuf
encodeFirstFragment(ByteBufAllocator allocator, int mtu, long initialRequestN, FrameType frameType, int streamId, boolean hasMetadata, ByteBuf metadata, ByteBuf data)

pack-priv static ByteBuf
encodeFollowsFragment(ByteBufAllocator allocator, int mtu, int streamId, boolean complete, ByteBuf metadata, ByteBuf data)

pack-priv static boolean
isFragmentable(int mtu, ByteBuf data, ByteBuf metadata, boolean hasInitialRequestN)

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

FRAME_OFFSETback to summary
pack-priv static final int FRAME_OFFSET
FRAME_OFFSET_WITH_INITIAL_REQUEST_Nback to summary
pack-priv static final int FRAME_OFFSET_WITH_INITIAL_REQUEST_N
FRAME_OFFSET_WITH_METADATAback to summary
pack-priv static final int FRAME_OFFSET_WITH_METADATA
FRAME_OFFSET_WITH_METADATA_AND_INITIAL_REQUEST_Nback to summary
pack-priv static final int FRAME_OFFSET_WITH_METADATA_AND_INITIAL_REQUEST_N
MIN_MTU_SIZEback to summary
pack-priv static final int MIN_MTU_SIZE

Constructor Detail

FragmentationUtilsback to summary
pack-priv FragmentationUtils()

Method Detail

assertMtuback to summary
pack-priv static int assertMtu(int mtu)
encodeFirstFragmentback to summary
pack-priv static ByteBuf encodeFirstFragment(ByteBufAllocator allocator, int mtu, FrameType frameType, int streamId, boolean hasMetadata, ByteBuf metadata, ByteBuf data)
encodeFirstFragmentback to summary
pack-priv static ByteBuf encodeFirstFragment(ByteBufAllocator allocator, int mtu, long initialRequestN, FrameType frameType, int streamId, boolean hasMetadata, ByteBuf metadata, ByteBuf data)
encodeFollowsFragmentback to summary
pack-priv static ByteBuf encodeFollowsFragment(ByteBufAllocator allocator, int mtu, int streamId, boolean complete, ByteBuf metadata, ByteBuf data)
isFragmentableback to summary
pack-priv static boolean isFragmentable(int mtu, ByteBuf data, ByteBuf metadata, boolean hasInitialRequestN)