org.ehcache.expiry
Class Expirations

java.lang.Object  extended by org.ehcache.expiry.Expirations

public final class Expirations
extends java.lang.Object

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

noExpiration

public static Expiry<java.lang.Object,java.lang.Object> noExpiration()
Get an Expiry instance for a non expiring (ie. "eternal") cache.

Returns:
the no expiry instance

timeToLiveExpiration

public static Expiry<java.lang.Object,java.lang.Object> timeToLiveExpiration(Duration timeToLive)
Get a time-to-live (TTL) Expiry instance for the given Duration.

Parameters:
timeToLive - the TTL duration
Returns:
a TTL expiry

timeToIdleExpiration

public static Expiry<java.lang.Object,java.lang.Object> timeToIdleExpiration(Duration timeToIdle)
Get a time-to-idle (TTI) Expiry instance for the given Duration.

Parameters:
timeToIdle - the TTI duration
Returns:
a TTI expiry




NOTHING
NOTHING
Add the Maven Dependecy to your project: maven dependecy for com.amazonaws : aws-java-sdk : 1.3.14