Search in sources :

Example 6 with MessagingKafkaConsumerConfigProperties

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;
}
Also used : MessagingKafkaConsumerConfigProperties(org.eclipse.hono.client.kafka.consumer.MessagingKafkaConsumerConfigProperties) ConfigurationProperties(org.springframework.boot.context.properties.ConfigurationProperties) Profile(org.springframework.context.annotation.Profile) Bean(org.springframework.context.annotation.Bean)

Aggregations

MessagingKafkaConsumerConfigProperties (org.eclipse.hono.client.kafka.consumer.MessagingKafkaConsumerConfigProperties)6 Buffer (io.vertx.core.buffer.Buffer)3 MessagingKafkaProducerConfigProperties (org.eclipse.hono.client.kafka.producer.MessagingKafkaProducerConfigProperties)3 CommonKafkaClientConfigProperties (org.eclipse.hono.client.kafka.CommonKafkaClientConfigProperties)2 KafkaMockConsumer (org.eclipse.hono.kafka.test.KafkaMockConsumer)2 BeforeEach (org.junit.jupiter.api.BeforeEach)2 Span (io.opentracing.Span)1 SpanContext (io.opentracing.SpanContext)1 Tracer (io.opentracing.Tracer)1 JsonObject (io.vertx.core.json.JsonObject)1 HashMap (java.util.HashMap)1 KafkaApplicationClientImpl (org.eclipse.hono.application.client.kafka.impl.KafkaApplicationClientImpl)1 TenantClient (org.eclipse.hono.client.registry.TenantClient)1 CommandRouterMetrics (org.eclipse.hono.commandrouter.CommandRouterMetrics)1 CommandTargetMapper (org.eclipse.hono.commandrouter.CommandTargetMapper)1 KafkaBasedCommandConsumerFactoryImpl (org.eclipse.hono.commandrouter.impl.kafka.KafkaBasedCommandConsumerFactoryImpl)1 ConfigurationProperties (org.springframework.boot.context.properties.ConfigurationProperties)1 Bean (org.springframework.context.annotation.Bean)1 Profile (org.springframework.context.annotation.Profile)1