Class NoProducerAvailableException

All Implemented Interfaces:
Serializable

public class NoProducerAvailableException extends KafkaException
Exception when no producer is available.
Since:
3.2
Author:
Wang Zhiyang, Ilya Starchenko
See Also:
  • Constructor Details

    • NoProducerAvailableException

      public NoProducerAvailableException(String message, String txIdPrefix)
      Constructs a new no producer available exception with the specified detail message.
      Parameters:
      message - the message.
      txIdPrefix - the transaction id prefix.
  • Method Details

    • getTxIdPrefix

      public String getTxIdPrefix()
      Return the transaction id prefix that was used to create the producer and failed.
      Returns:
      the transaction id prefix.