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