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
Class NoCachePolicy

    java.lang.Object
      org.modeshape.graph.connector.path.cache.NoCachePolicy

All Implemented Interfaces:
  Serializable, CachePolicy, PathCachePolicy

    @Immutable
    public class NoCachePolicy

extends Object
implements PathCachePolicy

Trivial path cache policy implementation that performs no caching at all

See Also:
  Serialized Form

Constructor Summary
`NoCachePolicy()`

Method Summary
`Class<? extends WorkspaceCache>` | `getCacheClass()` Return the class to be used as the cache implementation
`long` | `getTimeToLive()` Get the system time in milliseconds before which the node data remains valid.
`boolean` | `shouldCache(PathNode node)` Indicates whether the node should be cached .

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

Constructor Detail

### NoCachePolicy

    public NoCachePolicy()

Method Detail

### shouldCache

    public boolean shouldCache(PathNode node)

  Description copied from interface: `PathCachePolicy`
  Indicates whether the node should be cached .

  Specified by:
    `shouldCache` in interface `PathCachePolicy`
  Parameters:
    `node` - the node that may or may not be cached; may not be null
  Returns:
    false for all nodes
  See Also:
    `PathCachePolicy.shouldCache(PathNode)`

### getTimeToLive

    public long getTimeToLive()

  Description copied from interface: `CachePolicy`
  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.

### getCacheClass

    public Class<? extends WorkspaceCache> getCacheClass()

  Description copied from interface: `PathCachePolicy`
  Return the class to be used as the cache implementation

  Specified by:
    `getCacheClass` in interface `PathCachePolicy`
  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-2011 JBoss, a division of Red Hat. All Rights Reserved.