Class OnlineProducerFactory
java.lang.Object
com.linkedin.venice.producer.online.OnlineProducerFactory
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic <K,V> OnlineVeniceProducer<K, V> createProducer(ClientConfig storeClientConfig, VeniceProperties producerConfigs, ICProvider icProvider, VeniceWriterHook writerHook) Creates an online producer with an optional hook installed before writer construction.
-
Constructor Details
-
OnlineProducerFactory
public OnlineProducerFactory()
-
-
Method Details
-
createProducer
public static <K,V> OnlineVeniceProducer<K,V> createProducer(ClientConfig storeClientConfig, VeniceProperties producerConfigs, ICProvider icProvider, VeniceWriterHook writerHook) Creates an online producer with an optional hook installed before writer construction.The hook must be thread-safe. It runs on producer workers, or on the caller's thread when
client.producer.worker.count=0. Blocking delays submission; hook exceptions fail the write future. Completing the hook does not complete durability, which still requires a broker acknowledgment.- Parameters:
writerHook- the writer hook, ornullto preserve hook-free behavior
-