Table of Contents

Interface IKafkaTransaction

Namespace
Silverback.Messaging.Transactions
Assembly
Silverback.Integration.Kafka.dll

Represents a Kafka transaction.

public interface IKafkaTransaction : IDisposable
Inherited Members

Properties

TransactionalIdSuffix

Gets the suffix to be appended to the configured transactional id.

string? TransactionalIdSuffix { get; }

Property Value

string

Remarks

This is used to enable multiple transactions per producer configuration.

Methods

Abort()

Aborts the transaction.

void Abort()

Exceptions

InvalidOperationException

The transaction isn't pending, because no message has been produced in it or it has already been committed or aborted.

Commit()

Commits the transaction.

void Commit()

Exceptions

InvalidOperationException

The transaction isn't pending, because no message has been produced in it or it has already been committed or aborted.