public static class CacheConfiguration.Duration extends Object
| Modifier and Type | Field and Description |
|---|---|
static CacheConfiguration.Duration |
ETERNAL
ETERNAL
|
| Constructor and Description |
|---|
Duration(TimeUnit timeUnit,
long durationAmount)
Constructs a duration.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o) |
long |
getDurationAmount() |
TimeUnit |
getTimeUnit() |
int |
hashCode() |
public static final CacheConfiguration.Duration ETERNAL
public Duration(TimeUnit timeUnit, long durationAmount)
timeUnit - the unit of time to specify time in. The minimum time unit is milliseconds.durationAmount - how long, in the specified units, the cache entries should live. 0 means eternal.NullPointerException - if timeUnit is nullIllegalArgumentException - if durationAmount is less than 0 or a TimeUnit less than milliseconds is specifiedpublic TimeUnit getTimeUnit()
public long getDurationAmount()
Copyright © 2019 WSO2 Inc. All Rights Reserved.