org.jpox.cache
Class SoftLevel2Cache

java.lang.Object
  extended byorg.jpox.cache.DefaultLevel2Cache
      extended byorg.jpox.cache.SoftLevel2Cache
All Implemented Interfaces:
javax.jdo.datastore.DataStoreCache, Level2Cache

public class SoftLevel2Cache
extends DefaultLevel2Cache

Soft implementation of a Level 2 cache for JPOX. The second (unpinned) map stores soft references meaning that they may be garbage collected only if necessary by the JVM.

Version:
$Revision: 1.2 $

Nested Class Summary
 
Nested classes inherited from class org.jpox.cache.Level2Cache
Level2Cache.PinnedClass
 
Nested classes inherited from class javax.jdo.datastore.DataStoreCache
javax.jdo.datastore.DataStoreCache.EmptyDataStoreCache
 
Field Summary
 
Fields inherited from class org.jpox.cache.DefaultLevel2Cache
pinnedCache, pinnedClasses, pinnedIds, unpinnedCache
 
Constructor Summary
SoftLevel2Cache(java.util.Properties props)
          Constructor.
 
Methods inherited from class org.jpox.cache.DefaultLevel2Cache
clear, containsOid, evict, evictAll, evictAll, evictAll, evictAll, get, getNumberOfPinnedObjects, getNumberOfUnpinnedObjects, getSize, isEmpty, pin, pinAll, pinAll, pinAll, put, unpin, unpinAll, unpinAll, unpinAll
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SoftLevel2Cache

public SoftLevel2Cache(java.util.Properties props)
Constructor.

Parameters:
props - Any properties to control the cache


Copyright © -2007 . All Rights Reserved.