Class StackTraceElementProxySerializerV5
java.lang.Object
com.esotericsoftware.kryo.kryo5.Serializer<StackTraceElementProxy>
ch.qos.logback.core.kryo.SerializerBase<StackTraceElementProxy>
ch.qos.logback.classic.kryo.StackTraceElementProxySerializerV5
Caching serializer for
StackTraceElementProxy.
Stack frames are the main source of redundancy in throwable payloads: the same frames reappear across exceptions and log events. This serializer:
- Caches whole frames via
SerializerBase.BiMapType.DIRECT_MAP(frame equality is well-defined) - Compresses class names with
ClassNameSerializerby default (V5 passes aBasicStringSerializer) - Caches method and file names with
SingleItemCompressingStringSerializer
-
Nested Class Summary
Nested classes/interfaces inherited from class SerializerBase
SerializerBase.BiMapType -
Constructor Summary
ConstructorsConstructorDescriptionStackTraceElementProxySerializerV5(int capacity) Class names useClassNameSerializer.StackTraceElementProxySerializerV5(int capacity, SerializerBase<String> classNameSerializer) -
Method Summary
Modifier and TypeMethodDescriptionprotected StackTraceElementProxyreadNewEntry(com.esotericsoftware.kryo.kryo5.Kryo kryo, com.esotericsoftware.kryo.kryo5.io.Input input) protected voidwriteNewEntry(com.esotericsoftware.kryo.kryo5.Kryo kryo, com.esotericsoftware.kryo.kryo5.io.Output output, StackTraceElementProxy step) Method called to write new entries.Methods inherited from class SerializerBase
read, writeMethods inherited from class com.esotericsoftware.kryo.kryo5.Serializer
copy, getAcceptsNull, isImmutable, setAcceptsNull, setImmutable
-
Constructor Details
-
StackTraceElementProxySerializerV5
public StackTraceElementProxySerializerV5() -
StackTraceElementProxySerializerV5
Class names useClassNameSerializer. -
StackTraceElementProxySerializerV5
- Parameters:
classNameSerializer- class-name codec; V5 passes aBasicStringSerializer
-
-
Method Details
-
writeNewEntry
protected void writeNewEntry(com.esotericsoftware.kryo.kryo5.Kryo kryo, com.esotericsoftware.kryo.kryo5.io.Output output, StackTraceElementProxy step) Description copied from class:SerializerBaseMethod called to write new entries.- Specified by:
writeNewEntryin classSerializerBase<StackTraceElementProxy>- Parameters:
kryo-output-step-
-
readNewEntry
protected StackTraceElementProxy readNewEntry(com.esotericsoftware.kryo.kryo5.Kryo kryo, com.esotericsoftware.kryo.kryo5.io.Input input) - Specified by:
readNewEntryin classSerializerBase<StackTraceElementProxy>
-