Interface TransactionIdSuffixStrategy

All Known Implementing Classes:
DefaultTransactionIdSuffixStrategy

public interface TransactionIdSuffixStrategy
The strategy for managing transactional producer suffixes.
Since:
3.2
Author:
Ilya Starchenko
  • Method Summary

    Modifier and Type
    Method
    Description
    acquireSuffix(@Nullable String txIdPrefix)
    Acquire the suffix for the transactional producer.
    void
    releaseSuffix(@Nullable String txIdPrefix, @Nullable String suffix)
    Release the suffix for the transactional producer.
  • Method Details

    • acquireSuffix

      String acquireSuffix(@Nullable String txIdPrefix)
      Acquire the suffix for the transactional producer.
      Parameters:
      txIdPrefix - the transaction id prefix.
      Returns:
      the suffix.
    • releaseSuffix

      void releaseSuffix(@Nullable String txIdPrefix, @Nullable String suffix)
      Release the suffix for the transactional producer.
      Parameters:
      txIdPrefix - the transaction id prefix.
      suffix - the suffix.