| Modifier and Type | Method and Description |
|---|---|
Latency |
build()
Builds a new
Latency. |
Latency.Builder |
from(AbstractLatency instance)
Fill a builder with attribute values from the provided
AbstractLatency instance. |
Latency.Builder |
max(long max)
Initializes the value for the
max attribute. |
Latency.Builder |
mean(double mean)
Initializes the value for the
mean attribute. |
Latency.Builder |
median(double median)
Initializes the value for the
median attribute. |
Latency.Builder |
min(long min)
Initializes the value for the
min attribute. |
Latency.Builder |
percentile98th(double percentile98th)
Initializes the value for the
percentile98th
attribute. |
Latency.Builder |
percentile999th(double percentile999th)
Initializes the value for the
percentile999th
attribute. |
Latency.Builder |
percentile99th(double percentile99th)
Initializes the value for the
percentile99th
attribute. |
public final Latency.Builder from(AbstractLatency instance)
AbstractLatency instance.
Regular attribute values will be replaced with those from the given instance. Absent optional
values will not replace present values.instance - The instance from which to copy valuesthis builder for use in a chained invocationpublic final Latency.Builder median(double median)
median attribute.median - The value for medianthis builder for use in a chained invocationpublic final Latency.Builder percentile98th(double percentile98th)
percentile98th
attribute.percentile98th - The value for percentile98ththis builder for use in a chained invocationpublic final Latency.Builder percentile99th(double percentile99th)
percentile99th
attribute.percentile99th - The value for percentile99ththis builder for use in a chained invocationpublic final Latency.Builder percentile999th(double percentile999th)
percentile999th
attribute.percentile999th - The value for percentile999ththis builder for use in a chained invocationpublic final Latency.Builder mean(double mean)
mean attribute.mean - The value for meanthis builder for use in a chained invocationpublic final Latency.Builder min(long min)
min attribute.min - The value for minthis builder for use in a chained invocationpublic final Latency.Builder max(long max)
max attribute.max - The value for maxthis builder for use in a chained invocationpublic Latency build() throws IllegalStateException
Latency.IllegalStateException - if any required attributes are missing