ProducerRegistry
instead@Deprecated public interface KafkaProducerRegistry extends ProducerRegistry
KafkaProducer
instances key by id and type.Modifier and Type | Method and Description |
---|---|
<K,V> org.apache.kafka.clients.producer.KafkaProducer<K,V> |
getProducer(java.lang.String id,
io.micronaut.core.type.Argument<K> keyType,
io.micronaut.core.type.Argument<V> valueType)
Deprecated.
Returns a managed Producer.
|
@Nonnull <K,V> org.apache.kafka.clients.producer.KafkaProducer<K,V> getProducer(java.lang.String id, io.micronaut.core.type.Argument<K> keyType, io.micronaut.core.type.Argument<V> valueType)
getProducer
in interface ProducerRegistry
K
- The key generic typeV
- The value generic typeid
- The id of the producer.keyType
- The key typevalueType
- The value type