Package com.solace.serdes.common
Class SerdeHeaders
- java.lang.Object
-
- com.solace.serdes.common.SerdeHeaders
-
public class SerdeHeaders extends Object
A class that contains header properties. These properties are added and/or used byAbstractSerializer.serialize(String, Object, Map)
andAbstractDeserializer.deserialize(String, byte[], Map)
.
-
-
Field Summary
Fields Modifier and Type Field Description static String
SCHEMA_ID
A long valued schema ID used by the schema registry to uniquely identify a schema.static String
SCHEMA_ID_STRING
A String valued schema ID used by the schema registry to uniquely identify a schema.
-
-
-
Field Detail
-
SCHEMA_ID
public static final String SCHEMA_ID
A long valued schema ID used by the schema registry to uniquely identify a schema. Used byAbstractSerializer.serialize(String, Object, Map)
to write the property into the headers map with the schema ID used for serialization. Used byAbstractDeserializer.deserialize(String, byte[], Map)
to read from the headers map to get a schema from the registry.
This property can be manually set by usingSerdeProperties.EXPLICIT_SCHEMA_ID
on serialize.
This header is prioritized overSCHEMA_ID_STRING
when present and valid onAbstractDeserializer.deserialize(String, byte[], Map)
.- See Also:
- Constant Field Values
-
SCHEMA_ID_STRING
public static final String SCHEMA_ID_STRING
A String valued schema ID used by the schema registry to uniquely identify a schema. Used byAbstractSerializer.serialize(String, Object, Map)
to write the property into the headers map with the schema ID used for serialization. Used byAbstractDeserializer.deserialize(String, byte[], Map)
to read from the headers map to get a schema from the registry.
This property can be manually set by usingSerdeProperties.EXPLICIT_SCHEMA_ID
on serialize.- See Also:
- Constant Field Values
-
-