Package org.apache.cassandra.net
Class FrameEncoder.Payload
- java.lang.Object
-
- org.apache.cassandra.net.FrameEncoder.Payload
-
- Enclosing class:
- FrameEncoder
public static class FrameEncoder.Payload extends java.lang.Object
An abstraction useful for transparently allocating buffers that can be written to upstream of theFrameEncoder
without knowledge of the encoder's frame layout, while ensuring enough space to write the remainder of the frame's contents is reserved.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
finish()
void
release()
int
remaining()
-
-
-
Field Detail
-
MAX_SIZE
public static final int MAX_SIZE
- See Also:
- Constant Field Values
-
buffer
public final java.nio.ByteBuffer buffer
-
-