Class BootstrapResolutionException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.apache.kafka.common.KafkaException
org.apache.kafka.common.errors.BootstrapResolutionException
- All Implemented Interfaces:
Serializable
Indicates that the
NetworkClient was unable to resolve a DNS address within
the time specified by CommonClientConfigs.BOOTSTRAP_RESOLVE_TIMEOUT_MS_CONFIG.
This is an unrecoverable error: the failure is permanently attached to the client and is re-thrown on every
subsequent API call. Callers must close the client and construct a new one after resolving the underlying
DNS or bootstrap.servers configuration issue.
This exception is only thrown when bootstrap.resolve.timeout.ms is set to a positive value.
This feature is evolving and may undergo compatibility-breaking changes in a minor release.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionBootstrapResolutionException(String message) BootstrapResolutionException(String message, Throwable cause) -
Method Summary
Methods inherited from class Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
BootstrapResolutionException
-
BootstrapResolutionException
-