Package org.springframework.boot.actuate.metrics.writer

Examples of org.springframework.boot.actuate.metrics.writer.CompositeMetricWriter


    @Primary
    @ConditionalOnMissingBean(name = "primaryMetricWriter")
    public MetricWriter primaryMetricWriter(
        @Qualifier("metricsChannel") SubscribableChannel channel,
        List<MetricWriter> writers) {
      final MetricWriter observer = new CompositeMetricWriter(writers);
      channel.subscribe(new MetricWriterMessageHandler(observer));
      return new MessageChannelMetricWriter(channel);
    }
View Full Code Here


    @Bean
    @Primary
    @ConditionalOnMissingClass(name = "org.springframework.messaging.MessageChannel")
    @ConditionalOnMissingBean(name = "primaryMetricWriter")
    public MetricWriter primaryMetricWriter(List<MetricWriter> writers) {
      return new CompositeMetricWriter(writers);
    }
View Full Code Here

TOP

Related Classes of org.springframework.boot.actuate.metrics.writer.CompositeMetricWriter

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.