public static KafkaProducer <object, object, TValue> Create <TValue>( KafkaBrokers brokers, IKafkaSerializer <TValue> valueSerializer) { return(new KafkaProducer <object, object, TValue>(brokers, new NullSerializer <object>(), valueSerializer, new LoadBalancedPartitioner <object>())); }
public static KafkaProducer <TKey, TPartitionKey, TValue> Create <TKey, TPartitionKey, TValue>( KafkaBrokers brokers, IKafkaSerializer <TKey> keySerializer, IKafkaSerializer <TValue> valueSerializer, IKafkaMessagePartitioner <TPartitionKey> partitioner) { return(new KafkaProducer <TKey, TPartitionKey, TValue>( brokers, keySerializer, valueSerializer, partitioner)); }
public static KafkaProducer <TKey, TKey, TValue> Create <TKey, TValue>( KafkaBrokers brokers, IKafkaSerializer <TKey> keySerializer, IKafkaSerializer <TValue> valueSerializer ) { return(new KafkaProducer <TKey, TKey, TValue>( brokers, keySerializer, valueSerializer, new LoadBalancedPartitioner <TKey>())); }
public static KafkaConsumer <TKey, TValue> Create <TKey, TValue>(string consumerGroup, KafkaBrokers brokers, IKafkaSerializer <TKey> keySerializer, IKafkaSerializer <TValue> valueSerializer, params TopicSelector[] topics) { return(new KafkaConsumer <TKey, TValue>(consumerGroup, brokers, keySerializer, valueSerializer, topics)); }
public static KafkaConsumer <object, TValue> Create <TValue>(string consumerGroup, KafkaBrokers brokers, IKafkaSerializer <TValue> valueSerializer, params TopicSelector[] topics) { return(new KafkaConsumer <object, TValue>(consumerGroup, brokers, new NullSerializer <object>(), valueSerializer, topics)); }