|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.openjpa.datacache.DataCacheManagerImpl
public class DataCacheManagerImpl
Default data cache manager.
Constructor Summary | |
---|---|
DataCacheManagerImpl()
|
Method Summary | |
---|---|
void |
close()
Close all caches. |
DataCache |
getDataCache(String name)
Return the named data cache, or null if it does not exist. |
DataCache |
getDataCache(String name,
boolean create)
Return the named data cache. |
DataCacheScheduler |
getDataCacheScheduler()
Return the runnable which schedules evictions. |
DataCachePCDataGenerator |
getPCDataGenerator()
Return the PCData generator if configured. |
DataCache |
getSystemDataCache()
Return the system-wide data cache, or null if caching is not enabled. |
QueryCache |
getSystemQueryCache()
Return the system query cache, or null if not configured. |
void |
initialize(OpenJPAConfiguration conf,
ObjectValue dataCache,
ObjectValue queryCache)
Initialize the manager, supplying the cache configuration. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DataCacheManagerImpl()
Method Detail |
---|
public void initialize(OpenJPAConfiguration conf, ObjectValue dataCache, ObjectValue queryCache)
DataCacheManager
initialize
in interface DataCacheManager
public DataCache getSystemDataCache()
DataCacheManager
getSystemDataCache
in interface DataCacheManager
public DataCache getDataCache(String name)
DataCacheManager
getDataCache
in interface DataCacheManager
public DataCache getDataCache(String name, boolean create)
DataCacheManager
getDataCache
in interface DataCacheManager
create
- if true, the cache will be created if it does
not already existpublic QueryCache getSystemQueryCache()
DataCacheManager
getSystemQueryCache
in interface DataCacheManager
public DataCachePCDataGenerator getPCDataGenerator()
DataCacheManager
getPCDataGenerator
in interface DataCacheManager
public DataCacheScheduler getDataCacheScheduler()
DataCacheManager
getDataCacheScheduler
in interface DataCacheManager
public void close()
DataCacheManager
close
in interface DataCacheManager
close
in interface Closeable
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |