Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.modeshape.graph.cache
Class ImmutableCachePolicy

    java.lang.Object
      org.modeshape.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

Constructor Summary
`ImmutableCachePolicy(long timeToCache)`

Method Summary
`long` | `getTimeToLive()` Get the system time in milliseconds before which the node data remains valid.
`CachePolicy` | `getUnmodifiable()`

Methods inherited from class java.lang.Object
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Constructor Detail

### ImmutableCachePolicy

    public ImmutableCachePolicy(long timeToCache)

Method Detail

### getTimeToLive

    public long getTimeToLive()

  Get the system time in milliseconds before which the node data remains valid.

  Specified by:
    `getTimeToLive` in 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()

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Copyright © 2008-2011 JBoss, a division of Red Hat. All Rights Reserved.