public final class IntervalAggregationDescriptor extends Object
| Modifier and Type | Method and Description |
|---|---|
static IntervalAggregationDescriptor |
create(int numSubIntervals,
List<Duration> intervalSizes)
Constructs a new
IntervalAggregationDescriptor. |
static IntervalAggregationDescriptor |
create(List<Duration> intervalSizes)
Constructs a new
IntervalAggregationDescriptor with the number of sub intervals set
to the default value of 5. |
List<Duration> |
getIntervalSizes()
The time intervals to record for the aggregation.
|
int |
getNumSubIntervals()
The number of sub intervals.
|
public static IntervalAggregationDescriptor create(int numSubIntervals, List<Duration> intervalSizes)
IntervalAggregationDescriptor.
The given numSubIntervals must be in the range [2, 20], see
getNumSubIntervals() for more details.
The given intervalSizes must have at least one entry.
public static IntervalAggregationDescriptor create(List<Duration> intervalSizes)
IntervalAggregationDescriptor with the number of sub intervals set
to the default value of 5.public int getNumSubIntervals()
The number of internal sub-intervals to use when collecting stats for each interval. The max error in interval measurements will be approximately 1/getNumSubIntervals() (although in practice, this will only be approached in the presence of very large and bursty workload changes), and underlying memory usage will be roughly proportional to the value of this field. Must be in the range [2, 20]. A value of 5 will be used if this is unspecified.