Class BridgeErrorStrategy
java.lang.Object
org.apache.camel.component.kafka.consumer.errorhandler.BridgeErrorStrategy
- All Implemented Interfaces:
PollExceptionStrategy
-
Constructor Summary
ConstructorDescriptionBridgeErrorStrategy
(KafkaFetchRecords recordFetcher, org.apache.kafka.clients.consumer.Consumer<?, ?> consumer) -
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.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.apache.camel.component.kafka.PollExceptionStrategy
reset
-
Constructor Details
-
BridgeErrorStrategy
public BridgeErrorStrategy(KafkaFetchRecords recordFetcher, org.apache.kafka.clients.consumer.Consumer<?, ?> consumer)
-
-
Method Details
-
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
exception
- the caused exception which typically would be aKafkaException
-