public final class EmptyKafkaTupleListener extends Object implements KafkaTupleListener
| Constructor and Description |
|---|
EmptyKafkaTupleListener() |
| Modifier and Type | Method and Description |
|---|---|
void |
onAck(KafkaSpoutMessageId msgId)
Called when a tuple is acked.
|
void |
onEmit(List<Object> tuple,
KafkaSpoutMessageId msgId)
Called when the tuple is emitted and auto commit is disabled.
|
void |
onMaxRetryReached(KafkaSpoutMessageId msgId)
Called when the maximum number of retries have been reached.
|
void |
onPartitionsReassigned(Collection<org.apache.kafka.common.TopicPartition> topicPartitions)
Called when kafka partitions are rebalanced.
|
void |
onRetry(KafkaSpoutMessageId msgId)
Called when the Kafka spout sets a record for retry.
|
void |
open(Map<String,Object> conf,
TopologyContext context)
Called during the initialization of the kafka spout.
|
String |
toString() |
public void open(Map<String,Object> conf, TopologyContext context)
KafkaTupleListeneropen in interface KafkaTupleListenerconf - The storm configuration.context - The TopologyContextpublic void onEmit(List<Object> tuple, KafkaSpoutMessageId msgId)
KafkaTupleListeneronEmit in interface KafkaTupleListenertuple - the storm tuple.msgId - The id of the tuple in the spout.public void onAck(KafkaSpoutMessageId msgId)
KafkaTupleListeneronAck in interface KafkaTupleListenermsgId - The id of the tuple in the spout.public void onPartitionsReassigned(Collection<org.apache.kafka.common.TopicPartition> topicPartitions)
KafkaTupleListeneronPartitionsReassigned in interface KafkaTupleListenertopicPartitions - The list of partitions that are now assigned to the consumer (may include partitions previously
assigned to the consumer)public void onRetry(KafkaSpoutMessageId msgId)
KafkaTupleListeneronRetry in interface KafkaTupleListenermsgId - The id of the tuple in the spout.public void onMaxRetryReached(KafkaSpoutMessageId msgId)
KafkaTupleListeneronMaxRetryReached in interface KafkaTupleListenermsgId - The id of the tuple in the spout.Copyright © 2023 The Apache Software Foundation. All rights reserved.