T - specific metric value sub classpublic abstract static class MetricValue.Builder<T extends MetricValue.Builder<T>> extends Object
| Constructor and Description |
|---|
MetricValue.Builder() |
| Modifier and Type | Method and Description |
|---|---|
MetricValue |
build() |
T |
count(long value)
Sets the count.
|
MetricValue.Builder<?> |
millisecondsSpan(long millisecondsSpan)
Sets the time span in milliseconds.
|
T |
persistDate(Date persistDate)
Sets the persist date.
|
protected abstract T |
self() |
MetricValue.Builder<?> |
type(MetricDescriptor.Type type)
Sets the metric type.
|
MetricValue.Builder<?> |
uid(String uid)
Sets the metric identifier.
|
T |
updateDate(Date updateDate)
Sets the update date.
|
protected abstract T self()
public MetricValue build()
public MetricValue.Builder<?> uid(String uid)
uid - metric identifierpublic MetricValue.Builder<?> type(MetricDescriptor.Type type)
type - metric typepublic MetricValue.Builder<?> millisecondsSpan(long millisecondsSpan)
millisecondsSpan - time spanpublic T persistDate(Date persistDate)
persistDate - persist datepublic T updateDate(Date updateDate)
updateDate - update datepublic T count(long value)
value - the countCopyright © 2014. All Rights Reserved.