public class BlinkCodecFactory
extends java.lang.Object
implements com.cinnober.msgcodec.StreamCodecFactory
| Constructor and Description |
|---|
BlinkCodecFactory(com.cinnober.msgcodec.ProtocolDictionary dictionary)
Create a Blink codec factory.
|
| Modifier and Type | Method and Description |
|---|---|
BlinkCodec |
createStreamCodec() |
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.ProtocolDictionary dictionary)
dictionary - the protocol dictionary 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 createStreamCodec() throws com.cinnober.msgcodec.StreamCodecInstantiationException
createStreamCodec in interface com.cinnober.msgcodec.StreamCodecFactorycom.cinnober.msgcodec.StreamCodecInstantiationException