java.lang.Object
org.apache.camel.component.kafka.consumer.support.resume.KafkaResumable
All Implemented Interfaces:
org.apache.camel.resume.Resumable

public final class KafkaResumable extends Object implements org.apache.camel.resume.Resumable
  • Method Details

    • getOffsetKey

      public org.apache.camel.resume.OffsetKey<?> getOffsetKey()
      Specified by:
      getOffsetKey in interface org.apache.camel.resume.Resumable
    • getLastOffset

      public org.apache.camel.resume.Offset<?> getLastOffset()
      Specified by:
      getLastOffset in interface org.apache.camel.resume.Resumable
    • of

      public static KafkaResumable of(org.apache.camel.Exchange exchange)
      Creates a new resumable for Kafka
      Parameters:
      exchange - the exchange to create the resumable from
      Returns:
      a new KafkaResumable instance with the data from the exchange