Class OnlineProducerFactory

java.lang.Object
com.linkedin.venice.producer.online.OnlineProducerFactory

public class OnlineProducerFactory extends Object
  • 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, or null to preserve hook-free behavior