Class KeyValuePairSerializerV5

java.lang.Object
com.esotericsoftware.kryo.kryo5.Serializer<org.slf4j.event.KeyValuePair>
ch.qos.logback.classic.kryo.KeyValuePairSerializerV5

public class KeyValuePairSerializerV5 extends com.esotericsoftware.kryo.kryo5.Serializer<org.slf4j.event.KeyValuePair>
V5 serializer for a single KeyValuePair.

Keys use BasicStringSerializer (short repeating names, id cache). String values use the caller-supplied codec, typically the same MultiEventCompressedStringSerializer as the event message so there is one deflate stream.

  • Constructor Summary

    Constructors
    Constructor
    Description
    KeyValuePairSerializerV5(int stringCapacity)
     
    KeyValuePairSerializerV5(com.esotericsoftware.kryo.kryo5.Serializer<String> keySerializer, com.esotericsoftware.kryo.kryo5.Serializer<String> valueStringSerializer)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    org.slf4j.event.KeyValuePair
    read(com.esotericsoftware.kryo.kryo5.Kryo kryo, com.esotericsoftware.kryo.kryo5.io.Input input, Class<? extends org.slf4j.event.KeyValuePair> type)
     
    void
    write(com.esotericsoftware.kryo.kryo5.Kryo kryo, com.esotericsoftware.kryo.kryo5.io.Output output, org.slf4j.event.KeyValuePair keyValuePair)
     

    Methods inherited from class com.esotericsoftware.kryo.kryo5.Serializer

    copy, getAcceptsNull, isImmutable, setAcceptsNull, setImmutable

    Methods inherited from class Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

  • Method Details

    • write

      public void write(com.esotericsoftware.kryo.kryo5.Kryo kryo, com.esotericsoftware.kryo.kryo5.io.Output output, org.slf4j.event.KeyValuePair keyValuePair)
      Specified by:
      write in class com.esotericsoftware.kryo.kryo5.Serializer<org.slf4j.event.KeyValuePair>
    • read

      public org.slf4j.event.KeyValuePair read(com.esotericsoftware.kryo.kryo5.Kryo kryo, com.esotericsoftware.kryo.kryo5.io.Input input, Class<? extends org.slf4j.event.KeyValuePair> type)
      Specified by:
      read in class com.esotericsoftware.kryo.kryo5.Serializer<org.slf4j.event.KeyValuePair>