@Test public void customMetricNamesOverrideDefaultOnes() { CollectorRegistry registry = new CollectorRegistry(); BulkheadMetricsCollector.ofBulkheadRegistry( BulkheadMetricsCollector.MetricNames.custom() .availableConcurrentCallsMetricName("custom_available_calls") .maxAllowedConcurrentCallsMetricName("custom_max_allowed_calls") .build(), bulkheadRegistry).register(registry); assertThat(registry.getSampleValue( "custom_available_calls", new String[]{"name"}, new String[]{"backendA"} )).isNotNull(); assertThat(registry.getSampleValue( "custom_max_allowed_calls", new String[]{"name"}, new String[]{"backendA"} )).isNotNull(); }
public static BulkheadMetricsCollector ofBulkheadRegistry(MetricNames names, BulkheadRegistry bulkheadRegistry) { return new BulkheadMetricsCollector(names, bulkheadRegistry); }
BulkheadMetricsCollector extends Collector { public static BulkheadMetricsCollector ofBulkheadRegistry(MetricNames names, BulkheadRegistry bulkheadRegistry) { return new BulkheadMetricsCollector(names, bulkheadRegistry); } }
BulkheadMetricsCollector extends Collector { public static BulkheadMetricsCollector ofBulkheadRegistry(MetricNames names, BulkheadRegistry bulkheadRegistry) { return new BulkheadMetricsCollector(names, bulkheadRegistry); } private  BulkheadMetricsCollector(MetricNames names, BulkheadRegistry bulkheadRegistry); }
BulkheadMetricsCollector extends Collector { public static BulkheadMetricsCollector ofBulkheadRegistry(MetricNames names, BulkheadRegistry bulkheadRegistry) { return new BulkheadMetricsCollector(names, bulkheadRegistry); } private  BulkheadMetricsCollector(MetricNames names, BulkheadRegistry bulkheadRegistry); static BulkheadMetricsCollector ofBulkheadRegistry(MetricNames names,
        BulkheadRegistry bulkheadRegistry); static BulkheadMetricsCollector ofBulkheadRegistry(BulkheadRegistry bulkheadRegistry); @Override List<MetricFamilySamples> collect(); }
BulkheadMetricsCollector extends Collector { public static BulkheadMetricsCollector ofBulkheadRegistry(MetricNames names, BulkheadRegistry bulkheadRegistry) { return new BulkheadMetricsCollector(names, bulkheadRegistry); } private  BulkheadMetricsCollector(MetricNames names, BulkheadRegistry bulkheadRegistry); static BulkheadMetricsCollector ofBulkheadRegistry(MetricNames names,
        BulkheadRegistry bulkheadRegistry); static BulkheadMetricsCollector ofBulkheadRegistry(BulkheadRegistry bulkheadRegistry); @Override List<MetricFamilySamples> collect();  }