Class KafkaResumable
- 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 Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description org.apache.camel.resume.Offset<?>getLastOffset()org.apache.camel.resume.OffsetKey<?>getOffsetKey()static KafkaResumableof(org.apache.camel.Exchange exchange)Creates a new resumable for Kafka
-
-
-
Method Detail
-
getOffsetKey
public org.apache.camel.resume.OffsetKey<?> getOffsetKey()
- Specified by:
getOffsetKeyin interfaceorg.apache.camel.resume.Resumable
-
getLastOffset
public org.apache.camel.resume.Offset<?> getLastOffset()
- Specified by:
getLastOffsetin interfaceorg.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
-
-