Class TaggedFieldSerializerConfig

java.lang.Object
com.esotericsoftware.kryo.serializers.FieldSerializerConfig
com.esotericsoftware.kryo.serializers.TaggedFieldSerializerConfig
All Implemented Interfaces:
Cloneable

public class TaggedFieldSerializerConfig extends FieldSerializerConfig
Configuration for TaggedFieldSerializer instances.
  • Field Details

    • skipUnknownTags

      boolean skipUnknownTags
  • Constructor Details

    • TaggedFieldSerializerConfig

      public TaggedFieldSerializerConfig()
  • Method Details

    • setSkipUnknownTags

      public void setSkipUnknownTags(boolean skipUnknownTags)
      Set whether associated TaggedFieldSerializers should attempt to skip reading the data of unknown tags, rather than throwing a KryoException. Data can be skipped if it was tagged with TaggedFieldSerializer.Tag.annexed() set true. This enables forward compatibility.

      This setting is false by default.

      Parameters:
      skipUnknownTags - If true, unknown field tags will be skipped, with the assumption that they are future tagged values with TaggedFieldSerializer.Tag.annexed() set true. If false KryoException will be thrown whenever unknown tags are encountered.
    • getSkipUnknownTags

      public boolean getSkipUnknownTags()
      Whether the TaggedFieldSerializers should attempt to skip reading the data of unknown tags, rather than throwing a KryoException. The data may only be skipped if the later version of the application which created the data set those unknown tags with TaggedFieldSerializer.Tag.annexed() true. See setSkipUnknownTags(boolean).
    • clone

      Overrides:
      clone in class FieldSerializerConfig