|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.glite.security.voms.database.cache.TimedCacheable
Utility class to help creating Cacheables which should be periodically refreshed from the database.
RowCache
Constructor Summary | |
protected |
TimedCacheable()
Create a new TimedCacheable instance with the default refresh period. |
protected |
TimedCacheable(long period)
Create a new TimedCacheable instance with the specified refresh period. |
Method Summary | |
java.lang.Object |
clone()
Return a copy of this instance. |
abstract java.lang.Object[] |
getKeys()
Return the keys that are used to refer to this instance in RowCache. |
boolean |
needsRefresh()
Returns true if the configured amount of time has elapsed since the last refresh. |
void |
refresh()
Flags this Cacheable as uptodate. |
Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
protected TimedCacheable(long period)
protected TimedCacheable()
Method Detail |
public boolean needsRefresh()
needsRefresh
in interface Cacheable
public void refresh() throws GeneralDatabaseException
refresh
in interface Cacheable
GeneralDatabaseException
public abstract java.lang.Object[] getKeys()
Cacheable
getKeys
in interface Cacheable
public java.lang.Object clone()
Cacheable
clone
in interface Cacheable
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |