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.base.cache
Class NoCachePolicy<KeyType,NodeType extends Node>

    java.lang.Object
      org.modeshape.graph.connector.base.cache.NoCachePolicy<KeyType,NodeType>

Type Parameters:
  `KeyType` -
  `NodeType` -

All Implemented Interfaces:
  Serializable, CachePolicy, NodeCachePolicy<KeyType,NodeType>

    @Immutable
    public class NoCachePolicy<KeyType,NodeType extends Node>

extends Object
implements NodeCachePolicy<KeyType,NodeType>

Trivial path cache policy implementation that performs no caching at all

See Also:
  Serialized Form

Constructor Summary
`NoCachePolicy()`

Method Summary
`long` | `getTimeToLive()` Get the system time in milliseconds before which the node data remains valid.
`org.modeshape.graph.connector.base.cache.NoCachePolicy.NullCache` | `newCache()` Return a new cache instance that `uses this policy`.
`boolean` | `shouldCache(NodeType 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(NodeType node)

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

  Specified by:
    `shouldCache` in interface `NodeCachePolicy<KeyType,NodeType extends Node>`
  Parameters:
    `node` - the node
  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.

### newCache

    public org.modeshape.graph.connector.base.cache.NoCachePolicy.NullCache newCache()

  Description copied from interface: `NodeCachePolicy`
  Return a new cache instance that `uses this policy`.

  Specified by:
    `newCache` in interface `NodeCachePolicy<KeyType,NodeType extends Node>`
  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.