Class KafkaMessageSource.KafkaAckInfoImpl
java.lang.Object
org.springframework.integration.kafka.inbound.KafkaMessageSource.KafkaAckInfoImpl
- All Implemented Interfaces:
Comparable<KafkaMessageSource.KafkaAckInfo<K,V>>
,KafkaMessageSource.KafkaAckInfo<K,V>
- Enclosing class:
- KafkaMessageSource<K,V>
public class KafkaMessageSource.KafkaAckInfoImpl extends Object implements KafkaMessageSource.KafkaAckInfo<K,V>
Information for building an KafkaAckCallback.
-
Method Summary
Modifier and Type Method Description int
compareTo(KafkaMessageSource.KafkaAckInfo<K,V> other)
org.apache.kafka.clients.consumer.Consumer<K,V>
getConsumer()
Object
getConsumerMonitor()
String
getGroupId()
Map<org.apache.kafka.common.TopicPartition,Set<KafkaMessageSource.KafkaAckInfo<K,V>>>
getOffsets()
org.apache.kafka.clients.consumer.ConsumerRecord<K,V>
getRecord()
org.apache.kafka.common.TopicPartition
getTopicPartition()
boolean
isAckDeferred()
boolean
isRolledBack()
void
setAckDeferred(boolean ackDeferred)
void
setRolledBack(boolean rolledBack)
String
toString()
-
Method Details
-
getConsumerMonitor
- Specified by:
getConsumerMonitor
in interfaceKafkaMessageSource.KafkaAckInfo<K,V>
-
getGroupId
- Specified by:
getGroupId
in interfaceKafkaMessageSource.KafkaAckInfo<K,V>
-
getConsumer
- Specified by:
getConsumer
in interfaceKafkaMessageSource.KafkaAckInfo<K,V>
-
getRecord
- Specified by:
getRecord
in interfaceKafkaMessageSource.KafkaAckInfo<K,V>
-
getTopicPartition
public org.apache.kafka.common.TopicPartition getTopicPartition()- Specified by:
getTopicPartition
in interfaceKafkaMessageSource.KafkaAckInfo<K,V>
-
getOffsets
public Map<org.apache.kafka.common.TopicPartition,Set<KafkaMessageSource.KafkaAckInfo<K,V>>> getOffsets()- Specified by:
getOffsets
in interfaceKafkaMessageSource.KafkaAckInfo<K,V>
-
isRolledBack
public boolean isRolledBack()- Specified by:
isRolledBack
in interfaceKafkaMessageSource.KafkaAckInfo<K,V>
-
setRolledBack
public void setRolledBack(boolean rolledBack)- Specified by:
setRolledBack
in interfaceKafkaMessageSource.KafkaAckInfo<K,V>
-
isAckDeferred
public boolean isAckDeferred()- Specified by:
isAckDeferred
in interfaceKafkaMessageSource.KafkaAckInfo<K,V>
-
setAckDeferred
public void setAckDeferred(boolean ackDeferred)- Specified by:
setAckDeferred
in interfaceKafkaMessageSource.KafkaAckInfo<K,V>
-
compareTo
- Specified by:
compareTo
in interfaceComparable<KafkaMessageSource.KafkaAckInfo<K,V>>
-
toString
-