Class MultiEventCompressedStringSerializer

java.lang.Object
com.esotericsoftware.kryo.kryo5.Serializer<String>
ch.qos.logback.core.kryo.SerializerBase<String>
ch.qos.logback.classic.kryo.MultiEventCompressedStringSerializer

String serializer that DEFLATE-compresses long new string payloads as one raw (nowrap) deflate stream for the life of this serializer instance.

New values shorter than SIZE_THRESHOLD_FOR_COMPRESSION UTF-8 bytes are written unmodified ('U' + Kryo string). Longer new values are appended to the ongoing deflate stream ('C' + length-prefixed Deflater.SYNC_FLUSH chunk). Cached hits do not touch the deflater. Short and long new entries may be interleaved; only 'C' records advance compressor/decompressor state.

Uncompressed framing inside the deflate stream is int utf8Length (big-endian) + UTF-8 bytes. There is no gzip/zlib wrapper; record boundaries are the outer chunkLength plus SYNC_FLUSH.

Wire format per new entry:

  'U'  Kryo string
  'C'  int chunkLength; byte[chunkLength]  // next SYNC_FLUSH deflate segment