org.jboss.dna.graph.cache
Class ImmutableCachePolicy
java.lang.Object
   org.jboss.dna.graph.cache.ImmutableCachePolicy
org.jboss.dna.graph.cache.ImmutableCachePolicy
- All Implemented Interfaces: 
- Serializable, CachePolicy
- @Immutable
public class ImmutableCachePolicy 
- extends Object- implements CachePolicy
 
A basic CachePolicy implementation with a fixed time to live.
- See Also:
- Serialized Form
 
 
 
ImmutableCachePolicy
public ImmutableCachePolicy(long timeToCache)
getTimeToLive
public long getTimeToLive()
- Get the system time in milliseconds before which the node data remains valid.
 
- 
- Specified by:
- getTimeToLivein interface- CachePolicy
 
- 
- Returns:
- the number of milliseconds that the cached data should be used before consulting the original source.
- See Also:
- CachePolicy.getTimeToLive()
 
getUnmodifiable
public CachePolicy getUnmodifiable()
- 
 
- 
 
Copyright © 2008-2010 JBoss, a division of Red Hat. All Rights Reserved.