Class PostgreSqlKafkaOffsetStoreSettings
- Namespace
- Silverback.Messaging.Consuming.KafkaOffsetStore
- Assembly
- Silverback.Storage.PostgreSql.dll
The PostgreSqlKafkaOffsetStore settings.
public record PostgreSqlKafkaOffsetStoreSettings : KafkaOffsetStoreSettings, IValidatableSettings, IEquatable<KafkaOffsetStoreSettings>, IDatabaseConnectionSettings, IEquatable<PostgreSqlKafkaOffsetStoreSettings>
- Inheritance
-
PostgreSqlKafkaOffsetStoreSettings
- Implements
- Inherited Members
Constructors
PostgreSqlKafkaOffsetStoreSettings(PostgreSqlKafkaOffsetStoreSettings)
protected PostgreSqlKafkaOffsetStoreSettings(PostgreSqlKafkaOffsetStoreSettings original)
Parameters
originalPostgreSqlKafkaOffsetStoreSettings
PostgreSqlKafkaOffsetStoreSettings(string)
Initializes a new instance of the PostgreSqlKafkaOffsetStoreSettings class.
public PostgreSqlKafkaOffsetStoreSettings(string connectionString)
Parameters
connectionStringstringThe connection string to the PostgreSql database.
Properties
ConnectionString
Gets the connection string to the PostgreSql 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(PostgreSqlKafkaOffsetStoreSettings?)
public virtual bool Equals(PostgreSqlKafkaOffsetStoreSettings? 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 ==(PostgreSqlKafkaOffsetStoreSettings?, PostgreSqlKafkaOffsetStoreSettings?)
public static bool operator ==(PostgreSqlKafkaOffsetStoreSettings? left, PostgreSqlKafkaOffsetStoreSettings? right)
Parameters
Returns
operator !=(PostgreSqlKafkaOffsetStoreSettings?, PostgreSqlKafkaOffsetStoreSettings?)
public static bool operator !=(PostgreSqlKafkaOffsetStoreSettings? left, PostgreSqlKafkaOffsetStoreSettings? right)