Package org.springframework.kafka.core
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
Exception when no producer is available.
- Since:
- 3.2
- Author:
- Wang Zhiyang, Ilya Starchenko
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class org.springframework.kafka.KafkaException
KafkaException.Level
-
Constructor Summary
ConstructorDescriptionNoProducerAvailableException
(String message, String txIdPrefix) Constructs a new no producer available exception with the specified detail message. -
Method Summary
Modifier and TypeMethodDescriptionReturn the transaction id prefix that was used to create the producer and failed.Methods inherited from class org.springframework.kafka.KafkaException
selfLog
Methods inherited from class org.springframework.core.NestedRuntimeException
contains, getMostSpecificCause, getRootCause
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
NoProducerAvailableException
Constructs a new no producer available exception with the specified detail message.- Parameters:
message
- the message.txIdPrefix
- the transaction id prefix.
-
-
Method Details
-
getTxIdPrefix
Return the transaction id prefix that was used to create the producer and failed.- Returns:
- the transaction id prefix.
-