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

grpcstarter.extensions.metrics.OrderedMetricCollectingServerInterceptor 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.MetricCollectingServerInterceptor;
import org.springframework.core.Ordered;

/**
 * @author Freeman
 */
public class OrderedMetricCollectingServerInterceptor extends MetricCollectingServerInterceptor implements Ordered {

    private final int order;

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

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy