Interface ManualAckListenerErrorHandler
-
- All Superinterfaces:
KafkaListenerErrorHandler
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
@FunctionalInterface public interface ManualAckListenerErrorHandler extends KafkaListenerErrorHandler
AKafkaListenerErrorHandlerthat supports manual acks.- Since:
- 2.9
- Author:
- Gary Russell
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default java.lang.ObjecthandleError(org.springframework.messaging.Message<?> message, ListenerExecutionFailedException exception)Handle the error.java.lang.ObjecthandleError(org.springframework.messaging.Message<?> message, ListenerExecutionFailedException exception, org.apache.kafka.clients.consumer.Consumer<?,?> consumer, Acknowledgment ack)Handle the error.-
Methods inherited from interface org.springframework.kafka.listener.KafkaListenerErrorHandler
handleError
-
-
-
-
Method Detail
-
handleError
default java.lang.Object handleError(org.springframework.messaging.Message<?> message, ListenerExecutionFailedException exception)Description copied from interface:KafkaListenerErrorHandlerHandle the error.- Specified by:
handleErrorin interfaceKafkaListenerErrorHandler- Parameters:
message- the spring-messaging message.exception- the exception the listener threw, wrapped in aListenerExecutionFailedException.- Returns:
- the return value is ignored unless the annotated method has a
@SendToannotation.
-
handleError
java.lang.Object handleError(org.springframework.messaging.Message<?> message, ListenerExecutionFailedException exception, org.apache.kafka.clients.consumer.Consumer<?,?> consumer, @Nullable Acknowledgment ack)Description copied from interface:KafkaListenerErrorHandlerHandle the error.- Specified by:
handleErrorin interfaceKafkaListenerErrorHandler- Parameters:
message- the spring-messaging message.exception- the exception the listener threw, wrapped in aListenerExecutionFailedException.consumer- the consumer.ack- theAcknowledgment.- Returns:
- the return value is ignored unless the annotated method has a
@SendToannotation.
-
-