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