public class KafkaBinderMetrics extends Object implements io.micrometer.core.instrument.binder.MeterBinder, org.springframework.context.ApplicationListener<BindingCreatedEvent>, AutoCloseable
| 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 |
close() |
void |
onApplicationEvent(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(BindingCreatedEvent event)
onApplicationEvent in interface org.springframework.context.ApplicationListener<BindingCreatedEvent>public void close()
throws Exception
close in interface AutoCloseableExceptionCopyright © 2022 Pivotal Software, Inc.. All rights reserved.