Class AggregatedData.Builder
java.lang.Object
com.arpnetworking.commons.builder.OvalBuilder<T>
com.arpnetworking.commons.builder.ThreadLocalBuilder<AggregatedData>
com.arpnetworking.metrics.mad.model.AggregatedData.Builder
- All Implemented Interfaces:
com.arpnetworking.commons.builder.Builder<AggregatedData>
- Enclosing class:
- AggregatedData
public static final class AggregatedData.Builder
extends com.arpnetworking.commons.builder.ThreadLocalBuilder<AggregatedData>
Builder
implementation for
AggregatedData
.- Author:
- Ville Koskela (ville dot koskela at inscopemetrics dot io)
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
protected void
reset()
setIsSpecified
(Boolean value) The aggregated data was specified.setPopulationSize
(Long value) The population size.setStatistic
(Statistic value) The statistic.setSupportingData
(Object value) The supporting data.The value.Methods inherited from class com.arpnetworking.commons.builder.ThreadLocalBuilder
build, buildGeneric, clone, clone
Methods inherited from class com.arpnetworking.commons.builder.OvalBuilder
clone, clone, construct, isSelfValidating, toString, validate
-
Constructor Details
-
Builder
public Builder()Public constructor.
-
-
Method Details
-
setStatistic
The statistic. Required. Cannot be null.- Parameters:
value
- TheStatistic
.- Returns:
- This instance of
AggregatedData.Builder
.
-
setValue
The value. Required. Cannot be null.- Parameters:
value
- The value.- Returns:
- This instance of
AggregatedData.Builder
.
-
setPopulationSize
The population size. Required. Cannot be null.- Parameters:
value
- The samples.- Returns:
- This instance of
AggregatedData.Builder
.
-
setIsSpecified
The aggregated data was specified. Required. Cannot be null.- Parameters:
value
- The metric type.- Returns:
- This instance of
AggregatedData.Builder
.
-
setSupportingData
The supporting data.- Parameters:
value
- The supporting data.- Returns:
- This instance of
AggregatedData.Builder
.
-
build
- Specified by:
build
in interfacecom.arpnetworking.commons.builder.Builder<AggregatedData>
- Overrides:
build
in classcom.arpnetworking.commons.builder.ThreadLocalBuilder<AggregatedData>
-
reset
protected void reset()- Specified by:
reset
in classcom.arpnetworking.commons.builder.ThreadLocalBuilder<AggregatedData>
-