Class AvroSharpSerializerConfig
Settings of AvroSharpSerializer<T> and the serializers of AvroSharpGeneric, with the keys of
Confluent's AvroSerializerConfig (avro.serializer.*), so existing configuration carries over.
public sealed class AvroSharpSerializerConfig : SerdeConfig, IEnumerable<KeyValuePair<string, string>>, IEnumerable
- Inheritance
-
ConfigSerdeConfigAvroSharpSerializerConfig
- Implements
- Inherited Members
-
Config.GetEnumerator()Config.CancellationDelayMaxMs
Constructors
- AvroSharpSerializerConfig()
Creates empty settings: every value is the serializer's default.
- AvroSharpSerializerConfig(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
- AutoRegisterSchemas
Gets or sets whether the serializer registers the schema when the subject lacks it (
avro.serializer.auto.register.schemas). The default is true.
- BufferBytes
Gets or sets the initial size of the buffer a message is written into (
avro.serializer.buffer.bytes).
- NormalizeSchemas
Gets or sets whether the registry normalizes schemas when they are registered or looked up (
avro.serializer.normalize.schemas).
- SchemaIdStrategy
Gets or sets where the schema ID goes: the message prefix (the default) or a header (
avro.serializer.schema.id.strategy).
- SubjectNameStrategy
Gets or sets how the subject is named (
avro.serializer.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 the serializer writes with the subject's latest schema (
avro.serializer.use.latest.version).
- UseLatestWithMetadata
Gets or sets the metadata that selects the subject's latest schema to write with (
avro.serializer.use.latest.with.metadata).
- UseSchemaId
Gets or sets the ID of the registered schema to write with, instead of looking it up (
avro.serializer.use.schema.id).