Class ProcessingResult

java.lang.Object
org.apache.camel.component.kafka.consumer.support.ProcessingResult

public final class ProcessingResult extends Object
Holds the result of processing one or more consumer records
  • Constructor Details

    • ProcessingResult

      public ProcessingResult(boolean breakOnErrorHit, boolean failed)
      Constructs a new processing result
      Parameters:
      breakOnErrorHit - break on error hit setting
      failed - 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 setting
      failed - whether processing has failed
      topic - the topic
      partition - the partition of the topic
      offset - the consumer offset
  • Method Details

    • isBreakOnErrorHit

      public boolean isBreakOnErrorHit()
    • isFailed

      public boolean isFailed()
    • getTopic

      public String getTopic()
    • getPartition

      public int getPartition()
    • getOffset

      public long getOffset()
    • newUnprocessed

      public static ProcessingResult newUnprocessed()