| Package | Description |
|---|---|
| org.msgpack.core |
| Modifier and Type | Field and Description |
|---|---|
static MessagePack.PackerConfig |
MessagePack.DEFAULT_PACKER_CONFIG
Configuration of a
MessagePacker used by MessagePack.newDefaultPacker(MessageBufferOutput) and MessagePack.newDefaultBufferPacker() methods. |
| Modifier and Type | Method and Description |
|---|---|
MessagePack.PackerConfig |
MessagePack.PackerConfig.clone() |
MessagePack.PackerConfig |
MessagePack.PackerConfig.withBufferFlushThreshold(int bytes)
When the next payload size exceeds this threshold, MessagePacker will call
Flushable.flush() before writing more data (default: 8192). |
MessagePack.PackerConfig |
MessagePack.PackerConfig.withBufferSize(int bytes)
When a packer is created with
newPacker(OutputStream) or newPacker(WritableByteChannel), the stream will be
buffered with this size of buffer (default: 8192). |
MessagePack.PackerConfig |
MessagePack.PackerConfig.withSmallStringOptimizationThreshold(int length)
Use String.getBytes() for converting Java Strings that are shorter than this threshold.
|
MessagePack.PackerConfig |
MessagePack.PackerConfig.withStr8FormatSupport(boolean str8FormatSupport)
Disable str8 format when needed backward compatibility between
different msgpack serializer versions.
|
| Constructor and Description |
|---|
MessageBufferPacker(ArrayBufferOutput out,
MessagePack.PackerConfig config) |
MessageBufferPacker(MessagePack.PackerConfig config) |
MessagePacker(MessageBufferOutput out,
MessagePack.PackerConfig config)
Create an MessagePacker that outputs the packed data to the given
MessageBufferOutput. |
PackerConfig(MessagePack.PackerConfig copy) |