|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jpox.cache.OSCacheLevel2Cache
Simple implementation of a plugin for use of OSCache caching product with JPOX. Please refer to OpenSymphony OSCache for full details of their product.
Nested Class Summary |
Nested classes inherited from class org.jpox.cache.Level2Cache |
org.jpox.cache.Level2Cache.PinnedClass |
Nested classes inherited from class javax.jdo.datastore.DataStoreCache |
javax.jdo.datastore.DataStoreCache.EmptyDataStoreCache |
Constructor Summary | |
OSCacheLevel2Cache(java.util.Properties props)
Constructor. |
Method Summary | |
void |
clear()
Method to clear the cache |
boolean |
containsOid(java.lang.Object oid)
Accessor for whether the cache contains the specified id. |
void |
evict(java.lang.Object oid)
Method to remove an entry from the cache. |
void |
evictAll()
Method to remove all entries from the cache. |
void |
evictAll(java.lang.Class pcClass,
boolean subclasses)
Method to remove all entries of a type from the cache |
void |
evictAll(java.util.Collection oids)
Method to remove a collection of entries from the cache. |
void |
evictAll(java.lang.Object[] oids)
Method to remove an array of entries from the cache. |
org.jpox.cache.CachedPC |
get(java.lang.Object oid)
Accessor for an object in the cache. |
int |
getNumberOfPinnedObjects()
Accessor for the number of pinned objects - not supported by Ehcache. |
int |
getNumberOfUnpinnedObjects()
Accessor for the number of unpinned objects - not supported by Ehcache. |
int |
getSize()
Accessor for the size of the cache. |
boolean |
isEmpty()
Accessor for whether the cache is empty |
void |
pin(java.lang.Object oid)
|
void |
pinAll(java.lang.Class cls,
boolean subs)
|
void |
pinAll(java.util.Collection oids)
|
void |
pinAll(java.lang.Object[] oids)
Method to pin an array of entries in the cache |
org.jpox.cache.CachedPC |
put(java.lang.Object oid,
org.jpox.cache.CachedPC pc)
Method to add an object to the cache under its id |
void |
unpin(java.lang.Object oid)
Method to unpin an entry from the cache |
void |
unpinAll(java.lang.Class cls,
boolean subs)
|
void |
unpinAll(java.util.Collection oids)
|
void |
unpinAll(java.lang.Object[] oids)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public OSCacheLevel2Cache(java.util.Properties props)
props
- Any properties to control the cacheMethod Detail |
public void clear()
clear
in interface org.jpox.cache.Level2Cache
Level2Cache.clear()
public boolean containsOid(java.lang.Object oid)
containsOid
in interface org.jpox.cache.Level2Cache
Level2Cache.containsOid(java.lang.Object)
public org.jpox.cache.CachedPC get(java.lang.Object oid)
get
in interface org.jpox.cache.Level2Cache
Level2Cache.get(java.lang.Object)
public int getNumberOfPinnedObjects()
getNumberOfPinnedObjects
in interface org.jpox.cache.Level2Cache
Level2Cache.getNumberOfPinnedObjects()
public int getNumberOfUnpinnedObjects()
getNumberOfUnpinnedObjects
in interface org.jpox.cache.Level2Cache
Level2Cache.getNumberOfUnpinnedObjects()
public int getSize()
getSize
in interface org.jpox.cache.Level2Cache
Level2Cache.getSize()
public boolean isEmpty()
isEmpty
in interface org.jpox.cache.Level2Cache
Level2Cache.isEmpty()
public org.jpox.cache.CachedPC put(java.lang.Object oid, org.jpox.cache.CachedPC pc)
put
in interface org.jpox.cache.Level2Cache
oid
- The identitypc
- The cacheable object
public void evict(java.lang.Object oid)
evict
in interface javax.jdo.datastore.DataStoreCache
DataStoreCache.evict(java.lang.Object)
public void evictAll()
evictAll
in interface javax.jdo.datastore.DataStoreCache
DataStoreCache.evictAll()
public void evictAll(java.lang.Class pcClass, boolean subclasses)
evictAll
in interface javax.jdo.datastore.DataStoreCache
DataStoreCache.evictAll(java.lang.Class, boolean)
public void evictAll(java.util.Collection oids)
evictAll
in interface javax.jdo.datastore.DataStoreCache
DataStoreCache.evictAll(java.util.Collection)
public void evictAll(java.lang.Object[] oids)
evictAll
in interface javax.jdo.datastore.DataStoreCache
DataStoreCache.evictAll(java.lang.Object[])
public void pin(java.lang.Object oid)
pin
in interface javax.jdo.datastore.DataStoreCache
DataStoreCache.pin(java.lang.Object)
public void pinAll(java.lang.Class cls, boolean subs)
pinAll
in interface javax.jdo.datastore.DataStoreCache
DataStoreCache.pinAll(java.lang.Class, boolean)
public void pinAll(java.util.Collection oids)
pinAll
in interface javax.jdo.datastore.DataStoreCache
DataStoreCache.pinAll(java.util.Collection)
public void pinAll(java.lang.Object[] oids)
pinAll
in interface javax.jdo.datastore.DataStoreCache
DataStoreCache.pinAll(java.lang.Object[])
public void unpin(java.lang.Object oid)
unpin
in interface javax.jdo.datastore.DataStoreCache
DataStoreCache.unpin(java.lang.Object)
public void unpinAll(java.lang.Class cls, boolean subs)
unpinAll
in interface javax.jdo.datastore.DataStoreCache
DataStoreCache.unpinAll(java.lang.Class, boolean)
public void unpinAll(java.util.Collection oids)
unpinAll
in interface javax.jdo.datastore.DataStoreCache
DataStoreCache.unpinAll(java.util.Collection)
public void unpinAll(java.lang.Object[] oids)
unpinAll
in interface javax.jdo.datastore.DataStoreCache
DataStoreCache.unpinAll(java.lang.Object[])
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |