|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.compoundtheory.objectcache.CachedObject
public class CachedObject
Class that wraps an object that is being cached and provide meta data information about it's cached state
| Constructor Summary | |
|---|---|
CachedObject(java.lang.ref.SoftReference softRef,
int secondsPersisted,
int secondsAccessedTimeout)
sets up an empty cached object |
|
| Method Summary | |
|---|---|
int |
calculateFitness()
Calculates the fitness of this object being persisted in the pool |
void |
clear()
|
java.lang.Object |
getCFC()
|
java.lang.ref.SoftReference |
getCfcSoftRef()
|
java.util.Date |
getCreated()
|
java.util.Date |
getExpired()
|
int |
getHits()
|
boolean |
hasExpired()
Has the cached object expired? |
void |
hit()
Hit to cached object |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public CachedObject(java.lang.ref.SoftReference softRef,
int secondsPersisted,
int secondsAccessedTimeout)
softRef - The soft reference that contains the CFCsecondsPersisted - The number of seconds to persist the object *| Method Detail |
|---|
public void clear()
public int calculateFitness()
public void hit()
public boolean hasExpired()
public java.util.Date getCreated()
public int getHits()
public java.lang.Object getCFC()
public java.lang.ref.SoftReference getCfcSoftRef()
public java.util.Date getExpired()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||