public class KafkaBinderMetrics extends Object implements io.micrometer.core.instrument.binder.MeterBinder, org.springframework.context.ApplicationListener<org.springframework.cloud.stream.binder.BindingCreatedEvent>
| Modifier and Type | Field and Description |
|---|---|
static String |
OFFSET_LAG_METRIC_NAME
Offset lag micrometer metric name.
|
| 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 static final String OFFSET_LAG_METRIC_NAME
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.MeterBinderpublic void onApplicationEvent(org.springframework.cloud.stream.binder.BindingCreatedEvent event)
onApplicationEvent in interface org.springframework.context.ApplicationListener<org.springframework.cloud.stream.binder.BindingCreatedEvent>Copyright © 2021 Pivotal Software, Inc.. All rights reserved.