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.MetricRegistry Maven / Gradle / Ivy
package com.ringcentral.platform.metrics;
import com.ringcentral.platform.metrics.configs.builders.*;
import com.ringcentral.platform.metrics.counter.Counter;
import com.ringcentral.platform.metrics.counter.configs.CounterConfig;
import com.ringcentral.platform.metrics.histogram.Histogram;
import com.ringcentral.platform.metrics.histogram.configs.HistogramConfig;
import com.ringcentral.platform.metrics.predicates.*;
import com.ringcentral.platform.metrics.rate.Rate;
import com.ringcentral.platform.metrics.rate.configs.RateConfig;
import com.ringcentral.platform.metrics.timer.Timer;
import com.ringcentral.platform.metrics.timer.configs.TimerConfig;
import com.ringcentral.platform.metrics.var.doubleVar.*;
import com.ringcentral.platform.metrics.var.doubleVar.configs.*;
import com.ringcentral.platform.metrics.var.longVar.*;
import com.ringcentral.platform.metrics.var.longVar.configs.*;
import com.ringcentral.platform.metrics.var.objectVar.*;
import com.ringcentral.platform.metrics.var.objectVar.configs.*;
import com.ringcentral.platform.metrics.var.stringVar.*;
import com.ringcentral.platform.metrics.var.stringVar.configs.*;
import java.util.Map;
import java.util.function.Supplier;
public interface MetricRegistry {
void addListener(MetricRegistryListener listener);
Map metrics();
void remove(MetricKey key);
default void preConfigure(MetricNamedPredicateBuilder> predicateBuilder, MetricModBuilder modBuilder) {
preConfigure(predicateBuilder.build(), modBuilder);
}
void preConfigure(MetricNamedPredicate predicate, MetricModBuilder modBuilder);
default void postConfigure(MetricNamedPredicateBuilder> predicateBuilder, MetricModBuilder modBuilder) {
postConfigure(predicateBuilder.build(), modBuilder);
}
void postConfigure(MetricNamedPredicate predicate, MetricModBuilder modBuilder);
/* Object var */
ObjectVar objectVar(MetricKey key, Supplier valueSupplier);
ObjectVar objectVar(
MetricKey key,
Supplier valueSupplier,
Supplier extends MetricConfigBuilderProvider extends MetricConfigBuilder>> configBuilderProviderSupplier);
ObjectVar newObjectVar(MetricKey key, Supplier valueSupplier);
ObjectVar newObjectVar(
MetricKey key,
Supplier valueSupplier,
Supplier extends MetricConfigBuilderProvider extends MetricConfigBuilder>> configBuilderProviderSupplier);
/* Caching object var */
CachingObjectVar cachingObjectVar(MetricKey key, Supplier valueSupplier);
CachingObjectVar cachingObjectVar(
MetricKey key,
Supplier valueSupplier,
Supplier extends MetricConfigBuilderProvider extends MetricConfigBuilder>> configBuilderProviderSupplier);
CachingObjectVar newCachingObjectVar(MetricKey key, Supplier valueSupplier);
CachingObjectVar newCachingObjectVar(
MetricKey key,
Supplier valueSupplier,
Supplier extends MetricConfigBuilderProvider extends MetricConfigBuilder>> configBuilderProviderSupplier);
/* Long var */
LongVar longVar(MetricKey key, Supplier valueSupplier);
LongVar longVar(
MetricKey key,
Supplier valueSupplier,
Supplier extends MetricConfigBuilderProvider extends MetricConfigBuilder>> configBuilderProviderSupplier);
LongVar newLongVar(MetricKey key, Supplier valueSupplier);
LongVar newLongVar(
MetricKey key,
Supplier valueSupplier,
Supplier extends MetricConfigBuilderProvider extends MetricConfigBuilder>> configBuilderProviderSupplier);
/* Caching long var */
CachingLongVar cachingLongVar(MetricKey key, Supplier valueSupplier);
CachingLongVar cachingLongVar(
MetricKey key,
Supplier valueSupplier,
Supplier extends MetricConfigBuilderProvider extends MetricConfigBuilder>> configBuilderProviderSupplier);
CachingLongVar newCachingLongVar(MetricKey key, Supplier valueSupplier);
CachingLongVar newCachingLongVar(
MetricKey key,
Supplier valueSupplier,
Supplier extends MetricConfigBuilderProvider extends MetricConfigBuilder>> configBuilderProviderSupplier);
/* Double var */
DoubleVar doubleVar(MetricKey key, Supplier valueSupplier);
DoubleVar doubleVar(
MetricKey key,
Supplier valueSupplier,
Supplier extends MetricConfigBuilderProvider extends MetricConfigBuilder>> configBuilderProviderSupplier);
DoubleVar newDoubleVar(MetricKey key, Supplier valueSupplier);
DoubleVar newDoubleVar(
MetricKey key,
Supplier valueSupplier,
Supplier extends MetricConfigBuilderProvider extends MetricConfigBuilder>> configBuilderProviderSupplier);
/* Caching double var */
CachingDoubleVar cachingDoubleVar(MetricKey key, Supplier valueSupplier);
CachingDoubleVar cachingDoubleVar(
MetricKey key,
Supplier valueSupplier,
Supplier extends MetricConfigBuilderProvider extends MetricConfigBuilder>> configBuilderProviderSupplier);
CachingDoubleVar newCachingDoubleVar(MetricKey key, Supplier valueSupplier);
CachingDoubleVar newCachingDoubleVar(
MetricKey key,
Supplier valueSupplier,
Supplier extends MetricConfigBuilderProvider extends MetricConfigBuilder>> configBuilderProviderSupplier);
/* String var */
StringVar stringVar(MetricKey key, Supplier valueSupplier);
StringVar stringVar(
MetricKey key,
Supplier valueSupplier,
Supplier extends MetricConfigBuilderProvider extends MetricConfigBuilder>> configBuilderProviderSupplier);
StringVar newStringVar(MetricKey key, Supplier valueSupplier);
StringVar newStringVar(
MetricKey key,
Supplier valueSupplier,
Supplier extends MetricConfigBuilderProvider extends MetricConfigBuilder>> configBuilderProviderSupplier);
/* Caching string var */
CachingStringVar cachingStringVar(MetricKey key, Supplier valueSupplier);
CachingStringVar cachingStringVar(
MetricKey key,
Supplier valueSupplier,
Supplier extends MetricConfigBuilderProvider extends MetricConfigBuilder>> configBuilderProviderSupplier);
CachingStringVar newCachingStringVar(MetricKey key, Supplier valueSupplier);
CachingStringVar newCachingStringVar(
MetricKey key,
Supplier valueSupplier,
Supplier extends MetricConfigBuilderProvider extends MetricConfigBuilder>> configBuilderProviderSupplier);
/* Counter */
Counter counter(MetricKey key);
Counter counter(
MetricKey key,
Supplier extends MetricConfigBuilderProvider extends MetricConfigBuilder>> configBuilderProviderSupplier);
Counter newCounter(MetricKey key);
Counter newCounter(
MetricKey key,
Supplier extends MetricConfigBuilderProvider extends MetricConfigBuilder>> configBuilderProviderSupplier);
/* Rate */
Rate rate(MetricKey key);
Rate rate(
MetricKey key,
Supplier extends MetricConfigBuilderProvider extends MetricConfigBuilder>> configBuilderProviderSupplier);
Rate newRate(MetricKey key);
Rate newRate(
MetricKey key,
Supplier extends MetricConfigBuilderProvider extends MetricConfigBuilder>> configBuilderProviderSupplier);
/* Histogram */
Histogram histogram(MetricKey key);
Histogram histogram(
MetricKey key,
Supplier extends MetricConfigBuilderProvider extends MetricConfigBuilder>> configBuilderProviderSupplier);
Histogram newHistogram(MetricKey key);
Histogram newHistogram(
MetricKey key,
Supplier extends MetricConfigBuilderProvider extends MetricConfigBuilder>> configBuilderProviderSupplier);
/* Timer */
Timer timer(MetricKey key);
Timer timer(
MetricKey key,
Supplier extends MetricConfigBuilderProvider extends MetricConfigBuilder>> configBuilderProviderSupplier);
Timer newTimer(MetricKey key);
Timer newTimer(
MetricKey key,
Supplier extends MetricConfigBuilderProvider extends MetricConfigBuilder>> configBuilderProviderSupplier);
}