Class KryoDecoder
java.lang.Object
ch.qos.logback.classic.kryo.KryoDecoder
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classOutcome of a decode pass: event count and nanoseconds spent reading objects versus invoking the consumer, plus what the decoder met on the way. -
Constructor Summary
ConstructorsConstructorDescriptionKryoDecoder(KryoEncoder.SerializerType serializerType, File file) Open a Kryo stream.KryoDecoder(File file) Open a Kryo stream and configure the decoder from its header. -
Method Summary
Modifier and TypeMethodDescriptiondecodeAndAppend(LoggerContext loggerContext) decodeWithConsumer(Consumer<LoggingEventKryoVO> consumer) byte
-
Constructor Details
-
KryoDecoder
Open a Kryo stream and configure the decoder from its header.- Throws:
IOException
-
KryoDecoder
Open a Kryo stream. The header determines version and serializer type;serializerTypeis retained for call-site compatibility and is checked against the header when present.- Throws:
IOException
-
-
Method Details
-
getSerializerType
-
getStreamVersion
-
decodeWithConsumer
public KryoDecoder.DecodeStats decodeWithConsumer(Consumer<LoggingEventKryoVO> consumer) throws IOException - Throws:
IOException
-
decodeAsList
- Throws:
IOException
-
decodeAndAppend
- Throws:
IOException
-