|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
Caching provides a common interface for classes whose data has a limited useful lifetime.
| Method Summary | |
void |
edirUpdateStore()
Update the persistent store from changes made to the current data. |
long |
getTimeToLive()
Returns the time to live for data cached by this object. |
boolean |
isExpired()
Return a flag indicating whether this object is due to refresh from the data source. |
boolean |
refreshCache()
Recursively refresh cached objects. |
boolean |
refreshCachedObjects(EnterpriseDirectoryAttributes attributes)
Refresh cache. |
void |
releaseCache()
Release cached objects. |
void |
setDirty()
Mark the data in the object as requiring a refresh from the data source. |
void |
setTimeToLive(long seconds)
Sets the time to live for data cached by this object. |
void |
setTimeToLive(java.lang.String seconds)
Sets the time to live for data cached by this object. |
void |
updateStore()
Update the persistent store from changes made to the current data. |
| Method Detail |
public boolean refreshCache()
An entities cache can be thought of as a container holding objects. As the objects in this entities cache are being refreshed, recursivley ask those object to refresh their own caches.
public boolean refreshCachedObjects(EnterpriseDirectoryAttributes attributes)
attributes - The attributes for the entity.public void releaseCache()
public void updateStore()
throws EnterpriseDirectoryException
NamingException - Thrown for enterprise directory failure.
public void edirUpdateStore()
throws EnterpriseDirectoryException
EnterpriseDirectoryException - Thrown for enterprise directory failure.public void setDirty()
public boolean isExpired()
public long getTimeToLive()
public void setTimeToLive(long seconds)
seconds - The number of seconds this object's data should be
considered valid.public void setTimeToLive(java.lang.String seconds)
seconds - The number of seconds this object's data should be
considered valid.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||