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 PollOnError
handleException(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:PollExceptionStrategy
Controls how to handle the exception while polling from Kafka.- Specified by:
handleException
in interfacePollExceptionStrategy
- Parameters:
exception
- the caused exception which typically would be aKafkaException
- Returns:
- how to handle the exception
-
-