All Downloads are FREE. Search and download functionalities are using the official Maven repository.
Please wait. This can take some minutes ...
Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance.
Project price only 1 $
You can buy this project and download/modify it how often you want.
com.ringcentral.platform.metrics.configs.builders.BaseMeterAllSliceConfigBuilder Maven / Gradle / Ivy
package com.ringcentral.platform.metrics.configs.builders;
import com.ringcentral.platform.metrics.MetricContext;
import com.ringcentral.platform.metrics.configs.*;
import com.ringcentral.platform.metrics.configs.MeterSliceConfig.LevelInstanceNameProvider;
import com.ringcentral.platform.metrics.configs.builders.AbstractMeterConfigBuilder.AllSliceConfigBuilder;
import com.ringcentral.platform.metrics.labels.Label;
import com.ringcentral.platform.metrics.measurables.NothingMeasurable;
import com.ringcentral.platform.metrics.names.MetricName;
import java.time.Duration;
import java.util.*;
public class BaseMeterAllSliceConfigBuilder extends AllSliceConfigBuilder<
NothingMeasurable,
BaseMeterInstanceConfig,
BaseMeterSliceConfig,
BaseMeterConfig,
BaseMeterAllSliceConfigBuilder,
BaseMeterSliceConfigBuilder,
BaseMeterConfigBuilder> {
public BaseMeterAllSliceConfigBuilder(BaseMeterConfigBuilder builder, MetricName name) {
super(builder, name, NothingMeasurable.class);
}
@Override
public BaseMeterSliceConfig buildImpl(
boolean enabled,
MetricName name,
List labels,
Integer maxLabeledInstances,
Duration labeledInstanceExpirationTime,
Set measurables,
boolean totalEnabled,
BaseMeterInstanceConfig totalInstanceConfig,
boolean levelsEnabled,
LevelInstanceNameProvider levelInstanceNameProvider,
Map levelInstanceConfigs,
BaseMeterInstanceConfig defaultLevelInstanceConfig,
boolean onlyConfiguredLevelsEnabled,
MetricContext context) {
return new BaseMeterSliceConfig(
enabled,
name,
null,
labels,
maxLabeledInstances,
labeledInstanceExpirationTime,
measurables,
totalEnabled,
totalInstanceConfig,
levelsEnabled,
levelInstanceNameProvider,
levelInstanceConfigs,
defaultLevelInstanceConfig,
onlyConfiguredLevelsEnabled,
context);
}
}