Class ArgumentArraySerializerV5
java.lang.Object
com.esotericsoftware.kryo.kryo5.Serializer<Object[]>
ch.qos.logback.classic.kryo.ArgumentArraySerializerV5
V5 serializer for message argument arrays (
Object[]).
Does not use Kryo's default polymorphic array encoding. Each element is reduced by
SafeObjectTransformer and written via SafeObjectCodec (1-byte type tag +
compact payload). String arguments share a stream-scoped string serializer:
LoggingEventKryoVOSerializerV5 passes its MultiEventCompressedStringSerializer,
the int constructor uses a SingleItemCompressingStringSerializer.
Wire format:
varInt(length) length × (SafeObjectCodec element)
Null arrays are not handled here; callers should use writeObjectOrNull /
readObjectOrNull.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionArgumentArraySerializerV5(int stringCapacity) ArgumentArraySerializerV5(com.esotericsoftware.kryo.kryo5.Serializer<String> stringSerializer) -
Method Summary
Modifier and TypeMethodDescriptioncom.esotericsoftware.kryo.kryo5.Serializer<String> Object[]read(com.esotericsoftware.kryo.kryo5.Kryo kryo, com.esotericsoftware.kryo.kryo5.io.Input input, Class<? extends Object[]> type) voidwrite(com.esotericsoftware.kryo.kryo5.Kryo kryo, com.esotericsoftware.kryo.kryo5.io.Output output, Object[] arguments) Methods inherited from class com.esotericsoftware.kryo.kryo5.Serializer
copy, getAcceptsNull, isImmutable, setAcceptsNull, setImmutable
-
Constructor Details
-
ArgumentArraySerializerV5
public ArgumentArraySerializerV5() -
ArgumentArraySerializerV5
- Parameters:
stringCapacity- capacity of the string cache for string arguments
-
ArgumentArraySerializerV5
public ArgumentArraySerializerV5(com.esotericsoftware.kryo.kryo5.Serializer<String> stringSerializer) - Parameters:
stringSerializer- shared cache for string arguments (must not be null)
-
-
Method Details
-
getStringSerializer
-
write
-
read
-