Class SqliteKafkaOffsetStoreSettingsBuilder
- Namespace
- Silverback.Messaging.Configuration
- Assembly
- Silverback.Storage.Sqlite.dll
Builds the SqliteKafkaOffsetStoreSettings.
public class SqliteKafkaOffsetStoreSettingsBuilder : IKafkaOffsetStoreSettingsImplementationBuilder
- Inheritance
-
SqliteKafkaOffsetStoreSettingsBuilder
- Implements
- Inherited Members
Constructors
SqliteKafkaOffsetStoreSettingsBuilder(string)
Initializes a new instance of the SqliteKafkaOffsetStoreSettingsBuilder class.
public SqliteKafkaOffsetStoreSettingsBuilder(string connectionString)
Parameters
connectionStringstringThe connection string to the SQLite database.
Methods
Build()
Builds the settings instance.
public KafkaOffsetStoreSettings Build()
Returns
UseTable(string)
Sets the table name.
public SqliteKafkaOffsetStoreSettingsBuilder UseTable(string tableName)
Parameters
tableNamestringThe name of the Kafka offset store table. If not specified, the default
"SilverbackKafkaOffsets"will be used.
Returns
- SqliteKafkaOffsetStoreSettingsBuilder
The SqliteKafkaOffsetStoreSettingsBuilder so that additional calls can be chained.
WithCreateTableTimeout(TimeSpan)
Sets the timeout for the table creation.
public SqliteKafkaOffsetStoreSettingsBuilder WithCreateTableTimeout(TimeSpan createTableTimeout)
Parameters
createTableTimeoutTimeSpanThe timeout for the table creation. The default is 30 seconds.
Returns
- SqliteKafkaOffsetStoreSettingsBuilder
The SqliteOutboxSettingsBuilder so that additional calls can be chained.
WithDbCommandTimeout(TimeSpan)
Sets the database command timeout.
public SqliteKafkaOffsetStoreSettingsBuilder WithDbCommandTimeout(TimeSpan dbCommandTimeout)
Parameters
dbCommandTimeoutTimeSpanThe timeout for the database commands. The default is 10 seconds.
Returns
- SqliteKafkaOffsetStoreSettingsBuilder
The SqliteOutboxSettingsBuilder so that additional calls can be chained.