use of org.eclipse.hono.client.kafka.consumer.MessagingKafkaConsumerConfigProperties in project hono by eclipse.
the class AppConfiguration method messagingKafkaConsumerConfig.
/**
* Exposes Kafka consumer configuration properties as a Spring bean.
*
* @param commonKafkaClientConfig The common Kafka client configuration.
* @return The properties.
*/
@ConfigurationProperties(prefix = "hono.kafka.consumer")
@Profile("kafka")
@Bean
public MessagingKafkaConsumerConfigProperties messagingKafkaConsumerConfig(final CommonKafkaClientConfigProperties commonKafkaClientConfig) {
final MessagingKafkaConsumerConfigProperties configProperties = new MessagingKafkaConsumerConfigProperties();
configProperties.setCommonClientConfig(commonKafkaClientConfig);
return configProperties;
}
Aggregations