Class NoProducerAvailableException

java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.springframework.core.NestedRuntimeException
org.springframework.kafka.KafkaException
org.springframework.kafka.core.NoProducerAvailableException
All Implemented Interfaces:
Serializable

public class NoProducerAvailableException extends KafkaException
Exception when no producer is available.
Since:
3.2
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.