public class KafkaLeaderController extends Object implements Runnable, org.thales.punch.kafka.api.IRecordHandler<String,byte[]>
Here is the logic :
Constructor and Description |
---|
KafkaLeaderController(String bootstrapServers,
org.apache.kafka.clients.producer.KafkaProducer<String,byte[]> producer,
String clusterName,
String commandTopic,
String assignementTopic,
String controlTopic,
ILeader leader,
long tickInterval,
org.thales.punch.platform.api.pojo.JavaStoreSecurity securityStore) |
Modifier and Type | Method and Description |
---|---|
void |
onPartitionAssigned(org.thales.punch.kafka.api.IPartition partition,
org.apache.kafka.clients.consumer.OffsetAndMetadata offsetAndMetadata) |
void |
onPartitionRevoked(org.thales.punch.kafka.api.IPartition partition) |
void |
onReceive(org.thales.punch.kafka.api.IPartition partition,
org.apache.kafka.clients.consumer.ConsumerRecord<String,byte[]> record) |
void |
onTick(org.thales.punch.kafka.api.IPartition partition,
long nextOffsetToRead) |
void |
run() |
public KafkaLeaderController(String bootstrapServers, org.apache.kafka.clients.producer.KafkaProducer<String,byte[]> producer, String clusterName, String commandTopic, String assignementTopic, String controlTopic, ILeader leader, long tickInterval, org.thales.punch.platform.api.pojo.JavaStoreSecurity securityStore)
public void onReceive(org.thales.punch.kafka.api.IPartition partition, org.apache.kafka.clients.consumer.ConsumerRecord<String,byte[]> record)
onReceive
in interface org.thales.punch.kafka.api.IRecordHandler<String,byte[]>
public void onPartitionAssigned(org.thales.punch.kafka.api.IPartition partition, org.apache.kafka.clients.consumer.OffsetAndMetadata offsetAndMetadata)
onPartitionAssigned
in interface org.thales.punch.kafka.api.IRecordHandler<String,byte[]>
public void onPartitionRevoked(org.thales.punch.kafka.api.IPartition partition)
onPartitionRevoked
in interface org.thales.punch.kafka.api.IRecordHandler<String,byte[]>
public void onTick(org.thales.punch.kafka.api.IPartition partition, long nextOffsetToRead)
onTick
in interface org.thales.punch.kafka.api.IRecordHandler<String,byte[]>
Copyright © 2022. All rights reserved.