public static class CacheConfiguration.Duration extends Object
| Modifier and Type | Field and Description |
|---|---|
static CacheConfiguration.Duration |
ETERNAL
ETERNAL
|
| Constructor and Description |
|---|
CacheConfiguration.Duration(TimeUnit timeUnit,
long durationAmount)
Constructs a duration.
|
public static final CacheConfiguration.Duration ETERNAL
public CacheConfiguration.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 © 2018 WSO2 Inc. All rights reserved.