public class KafkaBinderMetrics extends Object implements org.springframework.context.ApplicationListener<BindingCreatedEvent>
Constructor and Description |
---|
KafkaBinderMetrics(KafkaMessageChannelBinder binder,
org.springframework.cloud.stream.binder.kafka.properties.KafkaBinderConfigurationProperties binderConfigurationProperties) |
KafkaBinderMetrics(KafkaMessageChannelBinder binder,
org.springframework.cloud.stream.binder.kafka.properties.KafkaBinderConfigurationProperties binderConfigurationProperties,
org.springframework.kafka.core.ConsumerFactory<?,?> defaultConsumerFactory,
MeterRegistry meterRegistry) |
Modifier and Type | Method and Description |
---|---|
void |
bindTo(MeterRegistry registry) |
void |
onApplicationEvent(BindingCreatedEvent event) |
void |
setTimeout(int timeout) |
public KafkaBinderMetrics(KafkaMessageChannelBinder binder, org.springframework.cloud.stream.binder.kafka.properties.KafkaBinderConfigurationProperties binderConfigurationProperties, org.springframework.kafka.core.ConsumerFactory<?,?> defaultConsumerFactory, @Nullable MeterRegistry meterRegistry)
public KafkaBinderMetrics(KafkaMessageChannelBinder binder, org.springframework.cloud.stream.binder.kafka.properties.KafkaBinderConfigurationProperties binderConfigurationProperties)
public void setTimeout(int timeout)
public void bindTo(MeterRegistry registry)
public void onApplicationEvent(BindingCreatedEvent event)
onApplicationEvent
in interface org.springframework.context.ApplicationListener<BindingCreatedEvent>
Copyright © 2019 Pivotal Software, Inc.. All rights reserved.