Package org.apache.camel.component.kafka
Class DefaultPollExceptionStrategy
- java.lang.Object
-
- org.apache.camel.component.kafka.DefaultPollExceptionStrategy
-
- All Implemented Interfaces:
PollExceptionStrategy
public class DefaultPollExceptionStrategy extends Object implements PollExceptionStrategy
-
-
Constructor Summary
Constructors Constructor Description DefaultPollExceptionStrategy()DefaultPollExceptionStrategy(PollOnError pollOnError)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PollOnErrorhandleException(Exception exception)Controls how to handle the exception while polling from Kafka.
-
-
-
Constructor Detail
-
DefaultPollExceptionStrategy
public DefaultPollExceptionStrategy()
-
DefaultPollExceptionStrategy
public DefaultPollExceptionStrategy(PollOnError pollOnError)
-
-
Method Detail
-
handleException
public PollOnError handleException(Exception exception)
Description copied from interface:PollExceptionStrategyControls how to handle the exception while polling from Kafka.- Specified by:
handleExceptionin interfacePollExceptionStrategy- Parameters:
exception- the caused exception which typically would be aKafkaException- Returns:
- how to handle the exception
-
-