Package org.springframework.kafka.core
Interface KafkaFailureCallback<K,V>
-
- Type Parameters:
K
- the key type.V
- the value type.
- All Superinterfaces:
org.springframework.util.concurrent.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.
@Deprecated @FunctionalInterface public interface KafkaFailureCallback<K,V> extends org.springframework.util.concurrent.FailureCallback
Deprecated.as of 2.9.1, in favor ofCompletableFuture.whenComplete(BiConsumer)
An enhancedFailureCallback
for reportingKafkaProducerException
s.- Since:
- 2.5
- Author:
- Gary Russell
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Deprecated Methods Modifier and Type Method Description default void
onFailure(java.lang.Throwable ex)
Deprecated.void
onFailure(KafkaProducerException ex)
Deprecated.Called when the send fails.
-
-
-
Method Detail
-
onFailure
default void onFailure(java.lang.Throwable ex)
Deprecated.- Specified by:
onFailure
in interfaceorg.springframework.util.concurrent.FailureCallback
-
onFailure
void onFailure(KafkaProducerException ex)
Deprecated.Called when the send fails.- Parameters:
ex
- the exception.
-
-