public class TaggedFieldSerializerConfig extends FieldSerializerConfig
Constructor and Description |
---|
TaggedFieldSerializerConfig() |
Modifier and Type | Method and Description |
---|---|
protected TaggedFieldSerializerConfig |
clone() |
boolean |
isIgnoreUnknownTags()
Deprecated.
See
setIgnoreUnknownTags(boolean) for information. |
boolean |
isSkipUnknownTags()
Whether the TaggedFieldSerializers should attempt to skip reading the data of unknown tags, rather than
throwing a KryoException.
|
void |
setIgnoreUnknownTags(boolean ignoreUnknownTags)
Deprecated.
The
ignoreUnknownTags feature is deprecated and the functionality is disabled, as it is an
invalid means of preserving forward compatibility. See setSkipUnknownTags(boolean) for an alternate means. |
void |
setSkipUnknownTags(boolean skipUnknownTags)
Set whether associated TaggedFieldSerializers should attempt to skip reading the data of unknown tags, rather
than throwing a KryoException.
|
getCachedFieldNameStrategy, isCopyTransient, isFieldsCanBeNull, isFixedFieldTypes, isIgnoreSyntheticFields, isOptimizedGenerics, isSerializeTransient, isSetFieldsAsAccessible, isUseAsm, setCachedFieldNameStrategy, setCopyTransient, setFieldsAsAccessible, setFieldsCanBeNull, setFixedFieldTypes, setIgnoreSyntheticFields, setOptimizedGenerics, setSerializeTransient, setUseAsm
public void setSkipUnknownTags(boolean skipUnknownTags)
TaggedFieldSerializer.Tag.annexed()
set true. This enables forward compatibility.
This setting is false by default.
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.public boolean isSkipUnknownTags()
TaggedFieldSerializer.Tag.annexed()
true.
See setSkipUnknownTags(boolean)
.@Deprecated public void setIgnoreUnknownTags(boolean ignoreUnknownTags)
ignoreUnknownTags
feature is deprecated and the functionality is disabled, as it is an
invalid means of preserving forward compatibility. See setSkipUnknownTags(boolean)
for an alternate means.ignoreUnknownTags
- This setting is now ignored.@Deprecated public boolean isIgnoreUnknownTags()
setIgnoreUnknownTags(boolean)
for information.protected TaggedFieldSerializerConfig clone()
clone
in class FieldSerializerConfig
Copyright © 2018. All rights reserved.