public final class EternalExpiryPolicy extends Object implements ExpiryPolicy, Serializable
ExpiryPolicy specifies that Cache Entries
 won't expire.  This however doesn't mean they won't be evicted if an
 underlying implementation needs to free-up resources where by it may
 choose to evict entries that are not due to expire.ExpiryPolicy, 
Serialized Form| Modifier and Type | Field and Description | 
|---|---|
| static long | serialVersionUIDThe serialVersionUID required for  Serializable. | 
| Constructor and Description | 
|---|
| EternalExpiryPolicy() | 
| Modifier and Type | Method and Description | 
|---|---|
| boolean | equals(Object other) | 
| static Factory<ExpiryPolicy> | factoryOf()Obtains a  Factoryfor an EternalExpiryPolicy. | 
| Duration | getExpiryForAccess()Gets the  Durationbefore an accessed Cache.Entry is
 considered expired. | 
| Duration | getExpiryForCreation()Gets the  Durationbefore a newly created Cache.Entry is considered
 expired. | 
| Duration | getExpiryForUpdate()Gets the  Durationbefore an updated Cache.Entry is considered
 expired. | 
| int | hashCode() | 
public static final long serialVersionUID
Serializable.public static Factory<ExpiryPolicy> factoryOf()
Factory for an Eternal ExpiryPolicy.Factory for an Eternal ExpiryPolicy.public Duration getExpiryForCreation()
Duration before a newly created Cache.Entry is considered
 expired.
 
 This method is called by a caching implementation after a Cache.Entry is
 created, but before a Cache.Entry is added to a cache, to determine the
 Duration before an entry expires.  If a Duration.ZERO
 is returned the new Cache.Entry is considered to be already expired and
 will not be added to the Cache.
 
 Should an exception occur while determining the Duration, an implementation
 specific default Duration will be used.
getExpiryForCreation in interface ExpiryPolicyDuration before a created entry expirespublic Duration getExpiryForAccess()
Duration before an accessed Cache.Entry is
 considered expired.
 
 This method is called by a caching implementation after a Cache.Entry is
 accessed to determine the Duration before an entry expires.  If a
 Duration.ZERO is returned a Cache.Entry will be
 considered immediately expired.  Returning null will result
 in no change to the previously understood expiry Duration.
 
Should an exception occur while determining the Duration, an implementation specific default Duration will be used.
getExpiryForAccess in interface ExpiryPolicyDuration before an accessed entry expirespublic Duration getExpiryForUpdate()
Duration before an updated Cache.Entry is considered
 expired.
 
 This method is called by the caching implementation after a Cache.Entry is
 updated to determine the Duration before the updated entry expires.
 If a Duration.ZERO is returned a Cache.Entry is considered
 immediately expired.  Returning null will result in no change
 to the previously understood expiry Duration.
 
Should an exception occur while determining the Duration, an implementation specific default Duration will be used.
getExpiryForUpdate in interface ExpiryPolicyDuration before an updated entry expiresCopyright © 2014. All Rights Reserved.