All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.solace.spring.cloud.stream.binder.config.SolaceMeterConfiguration Maven / Gradle / Ivy

The newest version!
package com.solace.spring.cloud.stream.binder.config;

import com.solace.spring.cloud.stream.binder.meter.SolaceMessageMeterBinder;
import com.solace.spring.cloud.stream.binder.meter.SolaceMeterAccessor;
import io.micrometer.core.instrument.MeterRegistry;
import org.springframework.boot.autoconfigure.condition.ConditionalOnClass;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
@ConditionalOnClass(MeterRegistry.class)
public class SolaceMeterConfiguration {
    @Bean
    public SolaceMessageMeterBinder solaceMessageMeterBinder() {
        return new SolaceMessageMeterBinder();
    }

    @Bean
    public SolaceMeterAccessor solaceMeterAccessor(SolaceMessageMeterBinder solaceMessageMeterBinder) {
        return new SolaceMeterAccessor(solaceMessageMeterBinder);
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy