Class ProcessingResult
java.lang.Object
org.apache.camel.component.kafka.consumer.support.ProcessingResult
Holds the result of processing one or more consumer records
-
Constructor Summary
ConstructorsConstructorDescriptionProcessingResult(boolean breakOnErrorHit, boolean failed) Constructs a new processing resultProcessingResult(boolean breakOnErrorHit, boolean failed, String topic, int partition, long offset) Constructs a new processing result -
Method Summary
Modifier and TypeMethodDescriptionlongintgetTopic()booleanbooleanisFailed()static ProcessingResult
-
Constructor Details
-
ProcessingResult
public ProcessingResult(boolean breakOnErrorHit, boolean failed) Constructs a new processing result- Parameters:
breakOnErrorHit- break on error hit settingfailed- whether processing has failed
-
ProcessingResult
public ProcessingResult(boolean breakOnErrorHit, boolean failed, String topic, int partition, long offset) Constructs a new processing result- Parameters:
breakOnErrorHit- break on error hit settingfailed- whether processing has failedtopic- the topicpartition- the partition of the topicoffset- the consumer offset
-
-
Method Details
-
isBreakOnErrorHit
public boolean isBreakOnErrorHit() -
isFailed
public boolean isFailed() -
getTopic
-
getPartition
public int getPartition() -
getOffset
public long getOffset() -
newUnprocessed
-