|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.ehcache.expiry.Expirations
public final class Expirations
Utility class for getting predefined Expiry
instances.
Method Summary | ||
---|---|---|
static Expiry<java.lang.Object,java.lang.Object> |
noExpiration()
Get an Expiry instance for a non expiring (ie. |
|
static
|
timeToIdleExpiration(Duration timeToIdle)
Get a time-to-idle (TTI) Expiry instance for the given duration |
|
static
|
timeToLiveExpiration(Duration timeToLive)
Get a time-to-live (TTL) Expiry instance for the given duration |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static Expiry<java.lang.Object,java.lang.Object> noExpiration()
Expiry
instance for a non expiring (ie. "eternal") cache
public static <K,V> Expiry<K,V> timeToLiveExpiration(Duration timeToLive)
Expiry
instance for the given duration
K
- the type of the keys used to access data within the cacheV
- the type of the values held within the cachetimeToLive
- the duration of TTL
public static <K,V> Expiry<K,V> timeToIdleExpiration(Duration timeToIdle)
Expiry
instance for the given duration
K
- the type of the keys used to access data within the cacheV
- the type of the values held within the cachetimeToIdle
- the duration of TTI
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |