Class LoggingEventKryoVOSerializerV5
- All Implemented Interfaces:
FieldByteAccumulatorAware
Logger name, level and thread name are followed by a 1-byte presence bitmap for
message, arguments, markers, key-value pairs, MDC, throwable and callerData
(usually absent). Message may be null (fluent .log() with no message).
Present fields are written with writeObject (no per-field null byte).
Timestamp and nanoseconds are one LongDeltaSerializer field:
(epochSecond << 30) | nanos. Caller data follows throwable when present.
Long unique strings (message, string arguments, KVP string values and MDC values)
share one MultiEventCompressedStringSerializer so there is a single deflate
stream. Short repeating strings (thread name, MDC keys, KVP keys) use
BasicStringSerializer and the id cache.
Logger names and stack-frame class names (caller data and throwable frames) use
BasicStringSerializer. Each of the three has its own instance.
Selected when the stream header version is
KryoClassicConstants.STREAM_VERSION_5.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final ArgumentArraySerializerV5protected final SerializerBase<String> Logger names are cached whole; no package-prefix table.protected final FieldByteAccumulatorprotected final com.esotericsoftware.kryo.kryo5.serializers.CollectionSerializer<ArrayList<org.slf4j.event.KeyValuePair>> protected final LoggerContextVOSerializerprotected final MultiEventCompressedStringSerializerShared by message, string arguments, KVP string values and MDC values.protected final MDCPropertyMapSerializerprotected final SerializerBase<String> protected final LongDeltaSerializerprotected final com.esotericsoftware.kryo.kryo5.Serializer<StackTraceElement> Caller-data frames.protected final com.esotericsoftware.kryo.kryo5.Serializer<String> protected final com.esotericsoftware.kryo.kryo5.Serializer<ThrowableProxyVO> Frame class names use their ownBasicStringSerializer.protected final LongDeltaSerializer -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionread(com.esotericsoftware.kryo.kryo5.Kryo kryo, com.esotericsoftware.kryo.kryo5.io.Input input, Class<? extends LoggingEventKryoVO> type) readCallerData(com.esotericsoftware.kryo.kryo5.Kryo kryo, com.esotericsoftware.kryo.kryo5.io.Input input) voidwrite(com.esotericsoftware.kryo.kryo5.Kryo kryo, com.esotericsoftware.kryo.kryo5.io.Output output, LoggingEventKryoVO event) voidwriteCallerData(com.esotericsoftware.kryo.kryo5.Kryo kryo, com.esotericsoftware.kryo.kryo5.io.Output output, StackTraceElement[] callerData) Methods inherited from class com.esotericsoftware.kryo.kryo5.Serializer
copy, getAcceptsNull, isImmutable, setAcceptsNull, setImmutable
-
Field Details
-
fieldByteAccumulator
-
longUniqueStrings
Shared by message, string arguments, KVP string values and MDC values. -
loggerContextVOSerializer
-
classNameSerializer
Logger names are cached whole; no package-prefix table. -
threadNameSerializer
-
messageSerializer
-
mdcPropertyMapSerializer
-
throwableProxyVOSerializer
protected final com.esotericsoftware.kryo.kryo5.Serializer<ThrowableProxyVO> throwableProxyVOSerializerFrame class names use their ownBasicStringSerializer. -
timestampDeltaSerializer
-
sequenceNumberDeltaSerializer
-
argumentArraySerializerV5
-
kvpCollectionSerializer
protected final com.esotericsoftware.kryo.kryo5.serializers.CollectionSerializer<ArrayList<org.slf4j.event.KeyValuePair>> kvpCollectionSerializer -
stackTraceElementSerializer
protected final com.esotericsoftware.kryo.kryo5.Serializer<StackTraceElement> stackTraceElementSerializerCaller-data frames. Class names have their ownBasicStringSerializer.
-
-
Constructor Details
-
LoggingEventKryoVOSerializerV5
public LoggingEventKryoVOSerializerV5()
-
-
Method Details
-
write
public void write(com.esotericsoftware.kryo.kryo5.Kryo kryo, com.esotericsoftware.kryo.kryo5.io.Output output, LoggingEventKryoVO event) - Specified by:
writein classcom.esotericsoftware.kryo.kryo5.Serializer<LoggingEventKryoVO>
-
read
public LoggingEventKryoVO read(com.esotericsoftware.kryo.kryo5.Kryo kryo, com.esotericsoftware.kryo.kryo5.io.Input input, Class<? extends LoggingEventKryoVO> type) - Specified by:
readin classcom.esotericsoftware.kryo.kryo5.Serializer<LoggingEventKryoVO>
-
writeCallerData
public void writeCallerData(com.esotericsoftware.kryo.kryo5.Kryo kryo, com.esotericsoftware.kryo.kryo5.io.Output output, StackTraceElement[] callerData) -
readCallerData
public StackTraceElement[] readCallerData(com.esotericsoftware.kryo.kryo5.Kryo kryo, com.esotericsoftware.kryo.kryo5.io.Input input) -
getFieldByteAccumulator
- Specified by:
getFieldByteAccumulatorin interfaceFieldByteAccumulatorAware
-