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