Package org.springframework.kafka.core
Interface KafkaFailureCallback<K,V>
- Type Parameters:
K
- the key type.V
- the value type.
- All Superinterfaces:
FailureCallback
- All Known Subinterfaces:
KafkaSendCallback<K,
V>
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
An enhanced
FailureCallback
for reporting
KafkaProducerException
s.- Since:
- 2.5
- Author:
- Gary Russell
-
Method Summary
Modifier and TypeMethodDescriptiondefault void
void
Called when the send fails.
-
Method Details
-
onFailure
- Specified by:
onFailure
in interfaceFailureCallback
-
onFailure
Called when the send fails.- Parameters:
ex
- the exception.
-