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

com.ringcentral.platform.metrics.configs.builders.BaseMeterConfigBuilder Maven / Gradle / Ivy

The newest version!
package com.ringcentral.platform.metrics.configs.builders;

import com.ringcentral.platform.metrics.MetricContext;
import com.ringcentral.platform.metrics.configs.*;
import com.ringcentral.platform.metrics.labels.*;
import com.ringcentral.platform.metrics.measurables.NothingMeasurable;
import com.ringcentral.platform.metrics.names.MetricName;

import java.util.*;

public class BaseMeterConfigBuilder extends AbstractMeterConfigBuilder<
    NothingMeasurable,
    BaseMeterInstanceConfig,
    BaseMeterSliceConfig,
    BaseMeterConfig,
    BaseMeterAllSliceConfigBuilder,
    BaseMeterSliceConfigBuilder,
    BaseMeterConfigBuilder> {

    public BaseMeterConfigBuilder() {
        super(NothingMeasurable.class);
    }

    public static BaseMeterConfigBuilder meter() {
        return meterConfigBuilder();
    }

    public static BaseMeterConfigBuilder withMeter() {
        return meterConfigBuilder();
    }

    public static BaseMeterConfigBuilder meterConfigBuilder() {
        return new BaseMeterConfigBuilder();
    }

    @Override
    protected BaseMeterAllSliceConfigBuilder makeAllSliceConfigBuilder(BaseMeterConfigBuilder builder, MetricName name) {
        return new BaseMeterAllSliceConfigBuilder(builder, name);
    }

    @Override
    protected BaseMeterSliceConfigBuilder makeSliceConfigBuilder(BaseMeterConfigBuilder builder, MetricName name) {
        return new BaseMeterSliceConfigBuilder(builder, name);
    }

    @Override
    protected InstanceConfigBuilder makeInstanceConfigBuilder() {
        return new BaseMeterInstanceConfigBuilder();
    }

    @Override
    protected BaseMeterConfig buildImpl(
        boolean enabled,
        String description,
        LabelValues prefixLabelValues,
        List




© 2015 - 2024 Weber Informatics LLC | Privacy Policy