Node Director
|
implements a cache for arbitrary objects. More...
Classes | |
class | CacheObject |
Public Member Functions | |
Cache () | |
Cache (long ttl) | |
Cache (long ttl, long extension) | |
Cache (long ttl, long extension, long gcInterval) | |
void | add (Object key, Object contents) |
void | add (Object key, Object contents, long ttl) |
void | add (Object key, Object contents, long ttl, long extension) |
void | gc () |
Object | get (Object key) |
void | remove (Object key) |
int | size () |
Enumeration | elements () |
implements a cache for arbitrary objects.
Each object is associated with a maximum time to live (TTL) after which it is removed from the cache and a time "extension" (each time the object is accessed the minimal time it stays in the cache is extended by the extension period). So the minimum time an object stays in the cache is the "extension" period, the maximum time is the TTL. Every now and then a "garbage collector" wipes "dead" objects out of the cache - independently of if they are still stored or not "dead" objects will never be accessible and be treated like being already wiped out.
sfi.director.util.Cache.Cache | ( | ) |
sfi.director.util.Cache.Cache | ( | long | ttl | ) |
sfi.director.util.Cache.Cache | ( | long | ttl, |
long | extension | ||
) |
sfi.director.util.Cache.Cache | ( | long | ttl, |
long | extension, | ||
long | gcInterval | ||
) |
void sfi.director.util.Cache.add | ( | Object | key, |
Object | contents | ||
) |
Referenced by sfi.director.util.Cache.add(), sfi.director.repository.config.DirectoryAccess.apply(), sfi.director.util.Tools.applyModifier(), sfi.director.application.PackageList.findPackage(), sfi.director.repository.CupsPPDDir.findPPD(), sfi.director.repository.config.DirectoryAccess.get(), sfi.director.application.autodoc.DocURNHandler.getHandlers(), sfi.director.repository.SchemaEnforcer.getSchema(), sfi.director.repository.SchemaEnforcer.getSchemaEnforcer(), sfi.director.gui.fields.Template.init(), sfi.director.gui.fields.DBChoice.init(), sfi.director.repository.SchemaEnforcer.putTemporarySchema(), sfi.director.util.Stub.register(), and sfi.director.application.PackageList.requiredPackage().
void sfi.director.util.Cache.add | ( | Object | key, |
Object | contents, | ||
long | ttl | ||
) |
References sfi.director.util.Cache.add().
void sfi.director.util.Cache.add | ( | Object | key, |
Object | contents, | ||
long | ttl, | ||
long | extension | ||
) |
References sfi.director.util.Cache.gc().
Enumeration sfi.director.util.Cache.elements | ( | ) |
Referenced by sfi.director.util.Stub.dumpStubs().
void sfi.director.util.Cache.gc | ( | ) |
Referenced by sfi.director.util.Cache.add().
Object sfi.director.util.Cache.get | ( | Object | key | ) |
Referenced by sfi.director.repository.config.DirectoryAccess.apply(), sfi.director.util.Tools.applyModifier(), sfi.director.application.PackageList.findPackage(), sfi.director.repository.CupsPPDDir.findPPD(), sfi.director.repository.config.DirectoryAccess.get(), sfi.director.application.autodoc.DocURNHandler.getHandlers(), sfi.director.util.Stub.getObject(), sfi.director.repository.SchemaEnforcer.getSchema(), sfi.director.repository.SchemaEnforcer.getSchemaEnforcer(), sfi.director.gui.fields.Template.init(), sfi.director.gui.fields.DBChoice.init(), sfi.director.util.Stub.register(), and sfi.director.application.PackageList.requiredPackage().
void sfi.director.util.Cache.remove | ( | Object | key | ) |
Referenced by sfi.director.util.Stub.unregister().
int sfi.director.util.Cache.size | ( | ) |
Referenced by sfi.director.util.Stub.size().