|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.xmlecho.palomar.cache.Holder
Abstract class for all ObjectHolders.
Holders 1) participate in linked list, 2) provide access to a
cached object, 3) provide access to the set of cache
properties for the object, and 4) provide access to
the key by which we store the object
| Field Summary | |
protected long |
_cachedAtTime
represents the time at which the object is cached. |
protected java.lang.Object |
_cachedObject
the original object that has to be cached. |
protected Cache |
_myCache
|
protected Holder |
_next
|
protected java.lang.String |
_objectKey
|
protected Policy[] |
_objectPolicies
The policies that are attached to the object held. |
protected Holder |
_prev
|
| Constructor Summary | |
Holder()
|
|
| Method Summary | |
abstract void |
clean()
remove the object from the IrisHolder, performing any necessary cleanup |
Cache |
getCache()
|
long |
getCachedAtTime()
Method for getting the time at which a particular Holder is instantiated |
Holder |
getNext()
gets next in linked list of IrisHolders |
java.lang.Object |
getObject()
Method for getting the original object. |
java.lang.String |
getObjectKey()
getter for object key |
Policy[] |
getPolicies()
Method for getting the policies attached to an Object |
Holder |
getPrev()
gets previous in linked list of IrisHolders |
void |
setCache(Cache theCache)
Inform the ObjectHolder which cache owns him |
void |
setCachedAtTime(long cachedTime)
sets the time at which the underlying object is cached. |
void |
setNext(Holder next)
sets next in linked list of IrisHolders |
java.lang.Object |
setObject(java.lang.Object subject)
Method for setting the object to be cached. |
void |
setObjectKey(java.lang.String objectKey)
setter for object key |
void |
setPolicies(Policy[] objectPolicies)
Method for setting policies on an Object. |
void |
setPrev(Holder prev)
sets previous in linked list of IrisHolders |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected java.lang.Object _cachedObject
protected Holder _prev
protected Holder _next
protected Cache _myCache
protected java.lang.String _objectKey
protected Policy[] _objectPolicies
protected long _cachedAtTime
| Constructor Detail |
public Holder()
| Method Detail |
public void setCache(Cache theCache)
public Cache getCache()
public java.lang.Object getObject()
public java.lang.Object setObject(java.lang.Object subject)
subject - object to be cached
public void setPolicies(Policy[] objectPolicies)
Object.
objectPolicies - list of policies to be attachedpublic Policy[] getPolicies()
Object
public long getCachedAtTime()
public void setCachedAtTime(long cachedTime)
cachedTime - time in millisecondspublic void setObjectKey(java.lang.String objectKey)
public abstract void clean()
public void setPrev(Holder prev)
public Holder getPrev()
public void setNext(Holder next)
public Holder getNext()
public java.lang.String getObjectKey()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||