confluent-kafka-dotnet
Show / Hide Table of Contents

Class SchemaRegistryConfig

CachedSchemaRegistryClient configuration properties.

Inheritance
object
SchemaRegistryConfig
Implements
IEnumerable<KeyValuePair<string, string>>
IEnumerable
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: Confluent.SchemaRegistry
Assembly: Confluent.SchemaRegistry.dll
Syntax
public class SchemaRegistryConfig : IEnumerable<KeyValuePair<string, string>>, IEnumerable

Fields

properties

The configuration properties.

Declaration
protected Dictionary<string, string> properties
Field Value
TypeDescription
Dictionary<string, string>

Properties

BasicAuthCredentialsSource

Specifies the configuration property(ies) that provide the basic authentication credentials.

Declaration
public AuthCredentialsSource? BasicAuthCredentialsSource { get; set; }
Property Value
TypeDescription
AuthCredentialsSource?

BasicAuthUserInfo

Basic auth credentials in the form {username}:{password}.

Declaration
public string BasicAuthUserInfo { get; set; }
Property Value
TypeDescription
string

EnableSslCertificateVerification

Enable/Disable SSL server certificate verification. Only use in contained test/dev environments.

default: '' importance: low

Declaration
public bool? EnableSslCertificateVerification { get; set; }
Property Value
TypeDescription
bool?

KeySubjectNameStrategy

Key subject name strategy.

default: SubjectNameStrategy.Topic

Declaration
[Obsolete("Subject name strategies should now be configured using the serializer's configuration. In the future, this configuration property will be removed from SchemaRegistryConfig")]
public SubjectNameStrategy? KeySubjectNameStrategy { get; set; }
Property Value
TypeDescription
SubjectNameStrategy?

LatestCacheTtlSecs

Specifies the TTL for caches holding latest schemas, or -1 for no TTL.

default: -1

Declaration
public int? LatestCacheTtlSecs { get; set; }
Property Value
TypeDescription
int?

MaxCachedSchemas

Specifies the maximum number of schemas CachedSchemaRegistryClient should cache locally.

default: 1000

Declaration
public int? MaxCachedSchemas { get; set; }
Property Value
TypeDescription
int?

RequestTimeoutMs

Specifies the timeout for requests to Confluent Schema Registry.

default: 30000

Declaration
public int? RequestTimeoutMs { get; set; }
Property Value
TypeDescription
int?

SslCaLocation

File or directory path to CA certificate(s) for verifying the schema registry's key.

default: '' importance: low

Declaration
public string SslCaLocation { get; set; }
Property Value
TypeDescription
string

SslKeystoreLocation

Path to client's keystore (PKCS#12) used for authentication.

default: '' importance: low

Declaration
public string SslKeystoreLocation { get; set; }
Property Value
TypeDescription
string

SslKeystorePassword

Client's keystore (PKCS#12) password.

default: '' importance: low

Declaration
public string SslKeystorePassword { get; set; }
Property Value
TypeDescription
string

Url

A comma-separated list of URLs for schema registry instances that are used to register or lookup schemas.

Declaration
public string Url { get; set; }
Property Value
TypeDescription
string

ValueSubjectNameStrategy

Value subject name strategy.

default: SubjectNameStrategy.Topic

Declaration
[Obsolete("Subject name strategies should now be configured using the serializer's configuration. In the future, this configuration property will be removed from SchemaRegistryConfig")]
public SubjectNameStrategy? ValueSubjectNameStrategy { get; set; }
Property Value
TypeDescription
SubjectNameStrategy?

Methods

Get(string)

Gets a configuration property value given a key. Returns null if the property has not been set.

Declaration
public string Get(string key)
Parameters
TypeNameDescription
stringkey

The configuration property to get.

Returns
TypeDescription
string

The configuration property value.

GetBool(string)

Gets a configuration property bool? value given a key.

Declaration
protected bool? GetBool(string key)
Parameters
TypeNameDescription
stringkey

The configuration property to get.

Returns
TypeDescription
bool?

The configuration property value.

GetEnumerator()

Returns an enumerator that iterates through the property collection.

Declaration
public IEnumerator<KeyValuePair<string, string>> GetEnumerator()
Returns
TypeDescription
IEnumerator<KeyValuePair<string, string>>

An enumerator that iterates through the property collection.

GetInt(string)

Gets a configuration property int? value given a key.

Declaration
protected int? GetInt(string key)
Parameters
TypeNameDescription
stringkey

The configuration property to get.

Returns
TypeDescription
int?

The configuration property value.

Set(string, string)

Set a configuration property using a string key / value pair.

Declaration
public void Set(string key, string val)
Parameters
TypeNameDescription
stringkey

The configuration property name.

stringval

The property value.

SetObject(string, object)

Set a configuration property using a key / value pair (null checked).

Declaration
protected void SetObject(string name, object val)
Parameters
TypeNameDescription
stringname
objectval

Implements

IEnumerable<T>
IEnumerable
In this article