| Package | Description |
|---|---|
| com.datastax.oss.protocol.internal |
| Modifier and Type | Method and Description |
|---|---|
Frame |
FrameCodec.decode(B source)
Decodes the next frame from the given buffer.
|
static Frame |
Frame.forRequest(int protocolVersion,
int streamId,
boolean tracing,
Map<String,ByteBuffer> customPayload,
Message message) |
static Frame |
Frame.forResponse(int protocolVersion,
int streamId,
UUID tracingId,
Map<String,ByteBuffer> customPayload,
List<String> warnings,
Message message) |
| Modifier and Type | Method and Description |
|---|---|
void |
SegmentBuilder.addFrame(Frame frame,
StateT frameState)
Adds a new frame.
|
B |
FrameCodec.encode(Frame frame)
Allocates a new buffer and encodes the given frame into it.
|
int |
FrameCodec.encodedBodySize(Frame frame)
How many bytes are needed to encode the given frame's body (message + tracing id, custom
payload and/or warnings if relevant).
|
int |
FrameCodec.encodedHeaderSize(Frame frame)
How many bytes are needed to encode the given frame's header.
|
void |
FrameCodec.encodeInto(Frame frame,
int bodySize,
B dest)
Encodes the given frame into an existing buffer.
|
protected void |
SegmentBuilder.onLargeFrameSplit(Frame frame,
int frameLength,
int sliceCount)
Invoked whenever a large frame needs to be split into multiple segments.
|
protected void |
SegmentBuilder.onSegmentFull(Frame frame,
int frameLength,
int currentPayloadLength,
int currentFrameCount)
Invoked whenever the current self-contained segment for small frames is full.
|
protected void |
SegmentBuilder.onSmallFrameAdded(Frame frame,
int frameLength,
int currentPayloadLength,
int currentFrameCount)
Invoked whenever a small frame was successfully added to the current self-contained segment,
without bringing it over its size limit.
|
Copyright © 2017–2022. All rights reserved.