Package org.datanucleus.cache

This package provides classes implementing caching within DataNucleus.

See:
          Description

Interface Summary
Level1Cache Provides an interface for Level 1 caches.
Level2Cache Interface for any Level 2 Cache used internally.
 

Class Summary
CachedPC An object that is stored in the Level2 Cache keyed by the identity of the persistable object.
DefaultLevel2Cache Default implementation of a Level 2 cache.
HardRefCache Implementation of a Level 1 cache keeping hard (strong) references to the objects.
Level2Cache.PinnedClass Representation of a class whose objects will be pinned when put into the L2 cache.
NullLevel2Cache Null implementation of a Level 2 Cache.
SoftLevel2Cache Soft implementation of a Level 2 cache.
SoftRefCache Level 1 Cache using Soft referenced objects in a Map.
WeakRefCache Level 1 Cache using Weak referenced objects in a Map.
 

Package org.datanucleus.cache Description

This package provides classes implementing caching within DataNucleus. There are 2 caches used internally :-

The first is within the PersistenceManager and is the Level 1 Cache. There are 3 available implementations of a Level 1 Cache here :- SoftRefCache, WeakRefCache and HardRefCache. They provide varying degrees of object retention during the garbage collection process.

The second is across multiple PersistenceManagers within the same PersistenceManagerFactory, and is the Level 2 Cache. There is one implementation of a Level 2 Cache here :- DefaultLevel2Cache. Alternatively, there are plugins for EHCache, SwarmCache, OSCache and Coherence products



Copyright © 2009. All Rights Reserved.