Class AsyncSerde<TParsedSchema>
Inheritance
AsyncSerde<TParsedSchema>
Assembly: Confluent.SchemaRegistry.dll
Syntax
public abstract class AsyncSerde<TParsedSchema>
Type Parameters
Name |
Description |
TParsedSchema |
|
Constructors
AsyncSerde(ISchemaRegistryClient, SerdeConfig, RuleRegistry)
Declaration
protected AsyncSerde(ISchemaRegistryClient schemaRegistryClient, SerdeConfig config, RuleRegistry ruleRegistry = null)
Parameters
Fields
latestCompatibilityStrict
Declaration
protected bool latestCompatibilityStrict
Field Value
ruleRegistry
Declaration
protected RuleRegistry ruleRegistry
Field Value
schemaRegistryClient
Declaration
protected ISchemaRegistryClient schemaRegistryClient
Field Value
serdeMutex
Declaration
protected SemaphoreSlim serdeMutex
Field Value
subjectNameStrategy
Declaration
protected SubjectNameStrategyDelegate subjectNameStrategy
Field Value
useLatestVersion
Declaration
protected bool useLatestVersion
Field Value
Declaration
protected IDictionary<string, string> useLatestWithMetadata
Field Value
Methods
Declaration
protected Task<object> ExecuteMigrations(IList<Migration> migrations, bool isKey, string subject, string topic, Headers headers, object message)
Parameters
Returns
Declaration
protected Task<object> ExecuteRules(bool isKey, string subject, string topic, Headers headers, RuleMode ruleMode, Schema source, Schema target, object message, FieldTransformer fieldTransformer)
Parameters
Returns
Exceptions
GetMigrations(string, Schema, Schema)
Declaration
protected Task<IList<Migration>> GetMigrations(string subject, Schema writerSchema, Schema readerSchema)
Parameters
Returns
GetParsedSchema(Schema)
Declaration
protected Task<TParsedSchema> GetParsedSchema(Schema schema)
Parameters
Type |
Name |
Description |
Schema |
schema |
|
Returns
Type |
Description |
Task<TParsedSchema> |
|
GetReaderSchema(string, Schema)
Declaration
protected Task<RegisteredSchema> GetReaderSchema(string subject, Schema schema = null)
Parameters
Returns
GetSchema(string, int, string)
Declaration
protected Task<(Schema, TParsedSchema)> GetSchema(string subject, int writerId, string format = null)
Parameters
Returns
GetSubjectName(string, bool, string)
Declaration
protected string GetSubjectName(string topic, bool isKey, string recordType)
Parameters
Returns
ParseSchema(Schema)
Declaration
protected abstract Task<TParsedSchema> ParseSchema(Schema schema)
Parameters
Type |
Name |
Description |
Schema |
schema |
|
Returns
Type |
Description |
Task<TParsedSchema> |
|
ResolveReferences(Schema)
Declaration
protected Task<IDictionary<string, string>> ResolveReferences(Schema schema)
Parameters
Type |
Name |
Description |
Schema |
schema |
|
Returns