|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.fjank.jcache.persistence.DiskCache
public class DiskCache
Clas implementing a simple disk peristence solution.
| Constructor Summary | |
|---|---|
DiskCache(CacheAttributes attributes)
Creates a new DiskCache object. |
|
| Method Summary | |
|---|---|
void |
close()
closes the diskcache, and optimizes the disk files. |
CacheObject |
getObject(Serializable key)
gets an object from the diskCache |
void |
removeAll()
Will remove all objects in this diskcache. |
boolean |
update(CacheObject cacheElement)
Adds the provided element to the cache. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DiskCache(CacheAttributes attributes)
throws DiskCacheException
attributes - the attributes for this disk cache.
DiskCacheException
DiskCacheException - if any exceptions occur.| Method Detail |
|---|
public final CacheObject getObject(Serializable key)
throws DiskCacheException
key - the key for the object
DiskCacheException - if exceptions occur.public void close()
public final boolean update(CacheObject cacheElement)
cacheElement - the element to add.
public void removeAll()
throws DiskCacheException
DiskCacheException - if removed was not successfull.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||