|
|||||||||
| 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 Expiry<java.lang.Object,java.lang.Object> |
timeToIdleExpiration(Duration timeToIdle)
Get a time-to-idle (TTI) Expiry instance for the given Duration. |
static Expiry<java.lang.Object,java.lang.Object> |
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 Expiry<java.lang.Object,java.lang.Object> timeToLiveExpiration(Duration timeToLive)
Expiry instance for the given Duration.
timeToLive - the TTL duration
public static Expiry<java.lang.Object,java.lang.Object> timeToIdleExpiration(Duration timeToIdle)
Expiry instance for the given Duration.
timeToIdle - the TTI duration
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||