Class RetryErrorStrategy
java.lang.Object
org.apache.camel.component.kafka.consumer.errorhandler.RetryErrorStrategy
- All Implemented Interfaces:
PollExceptionStrategy
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanThis method provides an "answer" to whether the consumer can continue polling or not.voidControls how to handle the exception while polling from Kafka.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.camel.component.kafka.PollExceptionStrategy
reset
-
Constructor Details
-
RetryErrorStrategy
public RetryErrorStrategy()
-
-
Method Details
-
canContinue
public boolean canContinue()Description copied from interface:PollExceptionStrategyThis method provides an "answer" to whether the consumer can continue polling or not. This is specific to each polling exception strategy and must be implemented accordingly- Specified by:
canContinuein interfacePollExceptionStrategy- Returns:
- true if polling should continue or false otherwise
-
handle
Description copied from interface:PollExceptionStrategyControls how to handle the exception while polling from Kafka.- Specified by:
handlein interfacePollExceptionStrategy- Parameters:
exception- the caused exception which typically would be aKafkaException
-