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.connector.path.cache
Interface PathCachePolicy

All Superinterfaces:
  CachePolicy, Serializable

All Known Implementing Classes:
  InMemoryWorkspaceCache.InMemoryCachePolicy, NoCachePolicy

    public interface PathCachePolicy

extends CachePolicy

The provides a method for selectively allowing or disallowing nodes to be cached based on their size, volatility, or any other factor that can be determined for the node.

Method Summary
`Class<? extends WorkspaceCache>` | `getCacheClass()` Return the class to be used as the cache implementation
`boolean` | `shouldCache(PathNode node)` Indicates whether the node should be cached .

Methods inherited from interface org.modeshape.graph.cache.CachePolicy
`getTimeToLive`

Method Detail

### shouldCache

    boolean shouldCache(PathNode node)

  Indicates whether the node should be cached .

  Parameters:
    `node` - the node that may or may not be cached; may not be null
  Returns:
    true if the node should be cached and false if it should not be cached

### getCacheClass

    Class<? extends WorkspaceCache> getCacheClass()

  Return the class to be used as the cache implementation

  Returns:
    the cache class

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.