Constructor and Description |
---|
Duration(int number,
java.lang.String unit)
A time-based amount of time.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
asRefreshPeriod()
Returns metric refresh period.
|
java.lang.String |
toString() |
asRefreshPeriod
public Duration(int number, java.lang.String unit)
A time-based amount of time.
number
- time durationunit
- time unit. Examples: s (seconds), m (minutes), h (hours), d (days), w (weeks).number
- time durationunit
- time unit. Examples: s (seconds), m (minutes), h (hours), d (days), w (weeks).