Class ActiveActiveProducerCallback
java.lang.Object
com.linkedin.davinci.kafka.consumer.LeaderProducerCallback
com.linkedin.davinci.kafka.consumer.ActiveActiveProducerCallback
- All Implemented Interfaces:
PubSubProducerCallback
,ChunkAwareCallback
-
Field Summary
Fields inherited from class com.linkedin.davinci.kafka.consumer.LeaderProducerCallback
CHUNKED_VALUE_MANIFEST_SERIALIZER, chunkedRmdManifest, EMPTY_BYTE_BUFFER, ingestionTask, leaderProducedRecordContext, oldRmdManifest, oldValueManifest
-
Constructor Summary
ConstructorDescriptionActiveActiveProducerCallback
(LeaderFollowerStoreIngestionTask ingestionTask, PubSubMessage<KafkaKey, KafkaMessageEnvelope, Long> sourceConsumerRecord, PartitionConsumptionState partitionConsumptionState, LeaderProducedRecordContext leaderProducedRecordContext, int partition, String kafkaUrl, long beforeProcessingRecordTimestamp) -
Method Summary
Modifier and TypeMethodDescriptionprotected Put
protected Put
protected Put
void
onCompletion
(PubSubProduceResult produceResult, Exception exception) exception will be null if request was completed without an error.void
setOnCompletionFunction
(Runnable onCompletionFunction) Methods inherited from class com.linkedin.davinci.kafka.consumer.LeaderProducerCallback
getIngestionTask, getPartitionConsumptionState, getSourceConsumerRecord, setChunkingInfo
-
Constructor Details
-
ActiveActiveProducerCallback
public ActiveActiveProducerCallback(LeaderFollowerStoreIngestionTask ingestionTask, PubSubMessage<KafkaKey, KafkaMessageEnvelope, Long> sourceConsumerRecord, PartitionConsumptionState partitionConsumptionState, LeaderProducedRecordContext leaderProducedRecordContext, int partition, String kafkaUrl, long beforeProcessingRecordTimestamp)
-
-
Method Details
-
onCompletion
Description copied from interface:PubSubProducerCallback
exception will be null if request was completed without an error.- Specified by:
onCompletion
in interfacePubSubProducerCallback
- Overrides:
onCompletion
in classLeaderProducerCallback
-
instantiateValueChunkPut
- Overrides:
instantiateValueChunkPut
in classLeaderProducerCallback
-
instantiateRmdChunkPut
- Overrides:
instantiateRmdChunkPut
in classLeaderProducerCallback
-
instantiateManifestPut
- Overrides:
instantiateManifestPut
in classLeaderProducerCallback
-
setOnCompletionFunction
-