public enum PeriodEnum extends Enum<PeriodEnum>
History
.Modifier and Type | Method and Description |
---|---|
long |
getPeriodMillis()
The #of milliseconds within a reporting period.
|
static PeriodEnum |
getValue(TimeUnit unit) |
TimeUnit |
toTimeUnit() |
static PeriodEnum |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static PeriodEnum[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final PeriodEnum Minutes
public static final PeriodEnum Hours
public static final PeriodEnum Days
public static PeriodEnum[] values()
for (PeriodEnum c : PeriodEnum.values()) System.out.println(c);
public static PeriodEnum valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic long getPeriodMillis()
#Minute
has a base reporting period of 60,000
milliseconds. All samples arriving within the same base reporting
period are combined in the same "slot" of the History
.
Samples arriving in the next period are combined within the next
"slot".public TimeUnit toTimeUnit()
public static PeriodEnum getValue(TimeUnit unit)
Copyright © 2006–2019 SYSTAP, LLC DBA Blazegraph. All rights reserved.