public class NativeBlinkCodecFactory
extends java.lang.Object
implements com.cinnober.msgcodec.MsgCodecFactory
| Constructor and Description |
|---|
NativeBlinkCodecFactory(com.cinnober.msgcodec.Schema schema)
Create a Blink codec factory.
|
| Modifier and Type | Method and Description |
|---|---|
NativeBlinkCodec |
createCodec() |
NativeBlinkCodecFactory |
setBufferPool(com.cinnober.msgcodec.util.Pool<byte[]> bufferPool)
Set the buffer pool.
|
NativeBlinkCodecFactory |
setMaxBinarySize(int maxBinarySize)
Set the maxiumum binary size allowed while decoding.
|
NativeBlinkCodecFactory |
setMaxSequenceLength(int maxSequenceLength)
Set the maxium sequence length allowed while decoding.
|
public NativeBlinkCodecFactory(com.cinnober.msgcodec.Schema schema)
schema - the protocol schema to be used by all codec instances, not null.public NativeBlinkCodecFactory setBufferPool(com.cinnober.msgcodec.util.Pool<byte[]> bufferPool)
bufferPool - the buffer pool to be used by all codec instances, not null.public NativeBlinkCodecFactory setMaxBinarySize(int maxBinarySize)
maxBinarySize - the maximum binary size (including strings) allowed while decoding, or -1 for no limit.public NativeBlinkCodecFactory setMaxSequenceLength(int maxSequenceLength)
maxSequenceLength - the maximum sequence length allowed while decoding, or -1 for no limit.public NativeBlinkCodec createCodec() throws com.cinnober.msgcodec.MsgCodecInstantiationException
createCodec in interface com.cinnober.msgcodec.MsgCodecFactorycom.cinnober.msgcodec.MsgCodecInstantiationException