Class ActiveActiveProducerCallback
- java.lang.Object
-
- com.linkedin.davinci.kafka.consumer.LeaderProducerCallback
-
- com.linkedin.davinci.kafka.consumer.ActiveActiveProducerCallback
-
- All Implemented Interfaces:
PubSubProducerCallback
,ChunkAwareCallback
public class ActiveActiveProducerCallback extends LeaderProducerCallback
-
-
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
Constructors Constructor Description ActiveActiveProducerCallback(LeaderFollowerStoreIngestionTask ingestionTask, PubSubMessage<KafkaKey,KafkaMessageEnvelope,java.lang.Long> sourceConsumerRecord, PartitionConsumptionState partitionConsumptionState, LeaderProducedRecordContext leaderProducedRecordContext, int partition, java.lang.String kafkaUrl, long beforeProcessingRecordTimestamp)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected Put
instantiateManifestPut()
protected Put
instantiateRmdChunkPut()
protected Put
instantiateValueChunkPut()
void
onCompletion(PubSubProduceResult produceResult, java.lang.Exception exception)
exception will be null if request was completed without an error.void
setOnCompletionFunction(java.lang.Runnable onCompletionFunction)
-
Methods inherited from class com.linkedin.davinci.kafka.consumer.LeaderProducerCallback
getIngestionTask, getPartitionConsumptionState, getSourceConsumerRecord, setChunkingInfo
-
-
-
-
Constructor Detail
-
ActiveActiveProducerCallback
public ActiveActiveProducerCallback(LeaderFollowerStoreIngestionTask ingestionTask, PubSubMessage<KafkaKey,KafkaMessageEnvelope,java.lang.Long> sourceConsumerRecord, PartitionConsumptionState partitionConsumptionState, LeaderProducedRecordContext leaderProducedRecordContext, int partition, java.lang.String kafkaUrl, long beforeProcessingRecordTimestamp)
-
-
Method Detail
-
onCompletion
public void onCompletion(PubSubProduceResult produceResult, java.lang.Exception exception)
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
protected Put instantiateValueChunkPut()
- Overrides:
instantiateValueChunkPut
in classLeaderProducerCallback
-
instantiateRmdChunkPut
protected Put instantiateRmdChunkPut()
- Overrides:
instantiateRmdChunkPut
in classLeaderProducerCallback
-
instantiateManifestPut
protected Put instantiateManifestPut()
- Overrides:
instantiateManifestPut
in classLeaderProducerCallback
-
setOnCompletionFunction
public void setOnCompletionFunction(java.lang.Runnable onCompletionFunction)
-
-