| Modifier and Type | Method and Description |
|---|---|
Gauge |
build()
Builds a new
Gauge. |
Gauge.Builder |
from(Gauge instance)
Fill a builder with attribute values from the provided
Gauge instance. |
Gauge.Builder |
metric(Map.Entry<String,? extends Metric> entry)
Put one entry to the
metrics map. |
Gauge.Builder |
metric(String key,
Metric value)
Put one entry to the
metrics map. |
Gauge.Builder |
metrics(Map<String,? extends Metric> entries)
Sets or replaces all mappings from the specified map as entries for the
metrics map. |
Gauge.Builder |
putAllMetrics(Map<String,? extends Metric> entries)
Put all mappings from the specified map as entries to
metrics map. |
public final Gauge.Builder from(Gauge instance)
Gauge instance.
Regular attribute values will be replaced with those from the given instance.
Absent optional values will not replace present values.
Collection elements and entries will be added, not replaced.instance - The instance from which to copy valuesthis builder for use in a chained invocationpublic final Gauge.Builder metric(String key, Metric value)
metrics map.key - The key in the metrics mapvalue - The associated value in the metrics mapthis builder for use in a chained invocationpublic final Gauge.Builder metric(Map.Entry<String,? extends Metric> entry)
metrics map. Nulls are not permittedentry - The key and value entrythis builder for use in a chained invocationpublic final Gauge.Builder metrics(Map<String,? extends Metric> entries)
metrics map. Nulls are not permittedentries - The entries that will be added to the metrics mapthis builder for use in a chained invocationpublic final Gauge.Builder putAllMetrics(Map<String,? extends Metric> entries)
metrics map. Nulls are not permittedentries - The entries that will be added to the metrics mapthis builder for use in a chained invocationpublic Gauge build()
Gauge.IllegalStateException - if any required attributes are missingCopyright © 2021. All rights reserved.