Class StopErrorStrategy
java.lang.Object
org.apache.camel.component.kafka.consumer.errorhandler.StopErrorStrategy
- All Implemented Interfaces:
PollExceptionStrategy
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
This method provides an "answer" to whether the consumer can continue polling or not.void
Controls how to handle the exception while polling from Kafka.void
reset()
Reset any error flags set by a previous error condition
-
Constructor Details
-
StopErrorStrategy
-
-
Method Details
-
reset
public void reset()Description copied from interface:PollExceptionStrategy
Reset any error flags set by a previous error condition- Specified by:
reset
in interfacePollExceptionStrategy
-
canContinue
public boolean canContinue()Description copied from interface:PollExceptionStrategy
This 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:
canContinue
in interfacePollExceptionStrategy
- Returns:
- true if polling should continue or false otherwise
-
handle
Description copied from interface:PollExceptionStrategy
Controls how to handle the exception while polling from Kafka.- Specified by:
handle
in interfacePollExceptionStrategy
- Parameters:
exception
- the caused exception which typically would be aKafkaException
-