public static class MessagePack.PackerConfig
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
int |
bufferFlushThreshold
When the next payload size exceeds this threshold, MessagePacker will call MessageBufferOutput.flush() before
packing the data.
|
int |
smallStringOptimizationThreshold
Use String.getBytes() for converting Java Strings that are smaller than this threshold into UTF8.
|
Constructor and Description |
---|
PackerConfig() |
Modifier and Type | Method and Description |
---|---|
MessageBufferPacker |
newBufferPacker()
Create a packer for storing packed data into a byte array
|
MessagePacker |
newPacker(MessageBufferOutput out)
Create a packer that outputs the packed data to a given output
|
MessagePacker |
newPacker(java.io.OutputStream out)
Create a packer that outputs the packed data to a given output stream
|
MessagePacker |
newPacker(java.nio.channels.WritableByteChannel channel)
Create a packer that outputs the packed data to a given output channel
|
public int smallStringOptimizationThreshold
public int bufferFlushThreshold
public MessagePacker newPacker(MessageBufferOutput out)
out
- public MessagePacker newPacker(java.io.OutputStream out)
out
- public MessagePacker newPacker(java.nio.channels.WritableByteChannel channel)
channel
- public MessageBufferPacker newBufferPacker()