public interface KafkaLogProcessor
KafkaLogEvent with KafkaLogProcessor. init and stop are lifecycle methods that can be called
multiple times when kafka leader partitions change.| Modifier and Type | Method and Description |
|---|---|
Checkpoint |
getCheckpoint(int partition)
Get the checkpoint offset for a given partition.
|
void |
init(Set<Integer> partitions)
Called when the leader partitions change.
|
void |
process(KafkaLogEvent event)
Process method will be called for each event received from Kafka from the topics published for log saver.
|
void |
stop()
Called to stop processing for the current set of kafka partitions.
|
void init(Set<Integer> partitions)
partitions - new leader partitions.void process(KafkaLogEvent event)
event - instance of KafkaLogEventvoid stop()
Checkpoint getCheckpoint(int partition)
partition - partition number in kafkaCopyright © 2015 Cask Data, Inc. Licensed under the Apache License, Version 2.0.