Methods Summary |
---|
public synchronized void | clear()
strongReferenceCache.clear();
softReferenceCache.clear();
|
public synchronized java.lang.Object | get(java.lang.Object key)
Object result = softReferenceCache.get( key );
if ( result != null ) {
strongReferenceCache.put( key, result );
}
return result;
|
private void | init()
strongReferenceCache = new LRUMap( strongReferenceCount );
|
public synchronized java.lang.Object | put(java.lang.Object key, java.lang.Object value)
softReferenceCache.put( key, value );
return strongReferenceCache.put( key, value );
|
private void | readObject(java.io.ObjectInputStream in)
in.defaultReadObject();
init();
|
public synchronized int | size()
return strongReferenceCache.size();
|
public synchronized int | softSize()
return softReferenceCache.size();
|