Package org.onosproject.cpman
Class MetricValue.Builder
- java.lang.Object
-
- org.onosproject.cpman.MetricValue.Builder
-
- Enclosing class:
- MetricValue
public static final class MetricValue.Builder extends java.lang.Object
MetricValue builder class.
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description MetricValue
add()
Builds a MetricValue object.MetricValue.Builder
count(long count)
Sets count value.MetricValue.Builder
load(long load)
Sets load value.MetricValue.Builder
rate(long rate)
Sets rate value.
-
-
-
Method Detail
-
rate
public MetricValue.Builder rate(long rate)
Sets rate value.- Parameters:
rate
- rate value- Returns:
- Builder object
-
load
public MetricValue.Builder load(long load)
Sets load value.- Parameters:
load
- load value- Returns:
- Builder object
-
count
public MetricValue.Builder count(long count)
Sets count value.- Parameters:
count
- count value- Returns:
- Builder object
-
add
public MetricValue add()
Builds a MetricValue object.- Returns:
- MetricValue object
-
-