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

grpcstarter.extensions.metrics.OrderedMetricCollectingClientInterceptor Maven / Gradle / Ivy

There is a newer version: 3.3.5.2
Show newest version
package grpcstarter.extensions.metrics;

import io.micrometer.core.instrument.MeterRegistry;
import io.micrometer.core.instrument.binder.grpc.MetricCollectingClientInterceptor;
import org.springframework.core.Ordered;

/**
 * @author Freeman
 */
public class OrderedMetricCollectingClientInterceptor extends MetricCollectingClientInterceptor implements Ordered {

    private final int order;

    public OrderedMetricCollectingClientInterceptor(MeterRegistry registry, int order) {
        super(registry);
        this.order = order;
    }

    @Override
    public int getOrder() {
        return order;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy