Method Summary |
|
public void | clear() Method to clear the cache. |
public boolean | containsOid(Object oid) |
public synchronized void | evict(Object oid) Method to evict an object from the cache. |
public synchronized void | evictAll() Method to evict all objects from the L2 cache. |
public synchronized void | evictAll(Class pcClass, boolean subclasses) Method to evict all objects of the given types from the cache. |
public synchronized void | evictAll(Collection oids) Method to evict the objects with the specified ids. |
public synchronized void | evictAll(Object[] oids) Method to evict the objects with the specified ids. |
public synchronized CachedPC | get(Object oid) Accessor for an object from the cache.
The returned object will not have a StateManager connected. |
public int | getNumberOfPinnedObjects() Accessor for the number of pinned objects in the cache. |
public int | getNumberOfUnpinnedObjects() Accessor for the number of unpinned objects in the cache. |
public int | getSize() Accessor for the total number of objects in the L2 cache. |
public boolean | isEmpty() Accessor for whether the cache is empty. |
public synchronized void | pin(Object oid) Method to pin an object to the cache. |
public synchronized void | pinAll(Class cls, boolean subs) Method to pin all objects of the given types. |
public synchronized void | pinAll(Collection oids) |
public synchronized void | pinAll(Object[] oids) |
public synchronized CachedPC | put(Object oid, CachedPC pc) Method to put an object in the cache. |
public synchronized void | unpin(Object oid) |
public synchronized void | unpinAll(Class cls, boolean subs) Method to unpin all objects of the specified types. |
public synchronized void | unpinAll(Collection oids) |
public synchronized void | unpinAll(Object[] oids) |