Class AvroSharpDeserializerConfig
Settings of AvroSharpDeserializer<T> and the deserializers of AvroSharpGeneric, with the keys of
Confluent's AvroDeserializerConfig (avro.deserializer.*), so existing configuration carries over.
public sealed class AvroSharpDeserializerConfig : SerdeConfig, IEnumerable<KeyValuePair<string, string>>, IEnumerable
- Inheritance
-
ConfigSerdeConfigAvroSharpDeserializerConfig
- Implements
- Inherited Members
-
Config.GetEnumerator()Config.CancellationDelayMaxMs
Constructors
- AvroSharpDeserializerConfig()
Creates empty settings: every value is the deserializer's default.
- AvroSharpDeserializerConfig(IEnumerable<KeyValuePair<string, string>>)
Creates settings from key-value pairs, copied, as Confluent's config classes do: a dictionary, or a configuration section's pairs (see the guide). Pairs without a value are left out.
Properties
- SchemaIdStrategy
Gets or sets where the schema ID is read from: the message prefix, a header, or both (
avro.deserializer.schema.id.strategy).
- SubjectNameStrategy
Gets or sets how the subject is named (
avro.deserializer.subject.name.strategy). The default is Confluent.SchemaRegistry.SubjectNameStrategy.Associated, as in Confluent's serde: the topic's association in the registry, or Confluent.SchemaRegistry.SubjectNameStrategy.Topic when it has none.
- UseLatestVersion
Gets or sets whether migration and domain rules apply with the subject's latest schema (
avro.deserializer.use.latest.version). A type's values are read as its own schema either way; generic values without a reader schema (AvroSharpGeneric) are read as the latest schema.
- UseLatestWithMetadata
Gets or sets the metadata that selects the subject's latest schema (
avro.deserializer.use.latest.with.metadata).