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
Interface CachePolicy

All Superinterfaces:
  Serializable

All Known Subinterfaces:
  NodeCachePolicy<KeyType,NodeType>, PathCachePolicy

All Known Implementing Classes:
  BasicCachePolicy, ImmutableCachePolicy, InMemoryNodeCache.MapCachePolicy, InMemoryNodeCache.PathCachePolicy, InMemoryWorkspaceCache.InMemoryCachePolicy, NoCachePolicy, NoCachePolicy

    @Immutable
    public interface CachePolicy

extends Serializable

The specification of how node data is to be cached. The time values provided are relative, allowing the same cache policy instance to be shared among multiple `Cacheable` objects.

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

Method Detail

### getTimeToLive

    long getTimeToLive()

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

  Returns:
    the number of milliseconds that the cached data should be used before consulting the original source.

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-2012 JBoss, a division of Red Hat. All Rights Reserved.