Class SqliteKafkaOffsetStoreSettings
- Namespace
- Silverback.Messaging.Consuming.KafkaOffsetStore
- Assembly
- Silverback.Storage.Sqlite.dll
The SqliteKafkaOffsetStore settings.
public record SqliteKafkaOffsetStoreSettings : KafkaOffsetStoreSettings, IValidatableSettings, IEquatable<KafkaOffsetStoreSettings>, IDatabaseConnectionSettings, IEquatable<SqliteKafkaOffsetStoreSettings>
- Inheritance
-
SqliteKafkaOffsetStoreSettings
- Implements
- Inherited Members
Constructors
SqliteKafkaOffsetStoreSettings(SqliteKafkaOffsetStoreSettings)
protected SqliteKafkaOffsetStoreSettings(SqliteKafkaOffsetStoreSettings original)
Parameters
originalSqliteKafkaOffsetStoreSettings
SqliteKafkaOffsetStoreSettings(string)
Initializes a new instance of the SqliteKafkaOffsetStoreSettings class.
public SqliteKafkaOffsetStoreSettings(string connectionString)
Parameters
connectionStringstringThe connection string to the SQLite database.
Properties
ConnectionString
Gets the connection string to the SQLite database.
public string ConnectionString { get; }
Property Value
CreateTableTimeout
Gets the timeout for the table creation. The default is 30 seconds.
public TimeSpan CreateTableTimeout { get; init; }
Property Value
DbCommandTimeout
Gets the database command timeout. The default is 10 seconds.
public TimeSpan DbCommandTimeout { get; init; }
Property Value
EqualityContract
protected override Type EqualityContract { get; }
Property Value
TableName
Gets The name of the Kafka offset store table. The default is "SilverbackKafkaOffsets".
public string TableName { get; init; }
Property Value
Methods
Equals(KafkaOffsetStoreSettings?)
public override sealed bool Equals(KafkaOffsetStoreSettings? other)
Parameters
otherKafkaOffsetStoreSettings
Returns
Equals(SqliteKafkaOffsetStoreSettings?)
public virtual bool Equals(SqliteKafkaOffsetStoreSettings? other)
Parameters
Returns
Equals(object?)
public override bool Equals(object? obj)
Parameters
objobject
Returns
GetHashCode()
public override int GetHashCode()
Returns
PrintMembers(StringBuilder)
protected override bool PrintMembers(StringBuilder builder)
Parameters
builderStringBuilder
Returns
ToString()
public override string ToString()
Returns
Validate()
Throws a SilverbackConfigurationException if the configuration is not valid.
public override void Validate()
Operators
operator ==(SqliteKafkaOffsetStoreSettings?, SqliteKafkaOffsetStoreSettings?)
public static bool operator ==(SqliteKafkaOffsetStoreSettings? left, SqliteKafkaOffsetStoreSettings? right)
Parameters
Returns
operator !=(SqliteKafkaOffsetStoreSettings?, SqliteKafkaOffsetStoreSettings?)
public static bool operator !=(SqliteKafkaOffsetStoreSettings? left, SqliteKafkaOffsetStoreSettings? right)