Package com.logicaldoc.syndication
Class SyndicationCache
- java.lang.Object
 - 
- com.logicaldoc.syndication.SyndicationCache
 
 
- 
public class SyndicationCache extends Object
Implements a cache of syndicated documents, basically a cache is a Map docId-sync_date The storage is done in plain text files organized per folderId.- Since:
 - 8.2
 - Author:
 - Marco Meschieri - LogicalDOC
 
 
- 
- 
Nested Class Summary
Nested Classes Modifier and Type Class Description static classSyndicationCache.CacheEntryA single entry in the cache 
- 
Constructor Summary
Constructors Constructor Description SyndicationCache(File root) 
- 
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidempty()SyndicationCache.CacheEntryget(long docId, long folderId)SyndicationCache.CacheEntryget(com.logicaldoc.core.document.Document doc)FilegetRoot()voidput(SyndicationCache.CacheEntry entry) 
 - 
 
- 
- 
Constructor Detail
- 
SyndicationCache
public SyndicationCache(File root)
 
 - 
 
- 
Method Detail
- 
getRoot
public File getRoot()
 
- 
get
public SyndicationCache.CacheEntry get(com.logicaldoc.core.document.Document doc) throws IOException
- Throws:
 IOException
 
- 
get
public SyndicationCache.CacheEntry get(long docId, long folderId) throws IOException
- Throws:
 IOException
 
- 
put
public void put(SyndicationCache.CacheEntry entry) throws IOException
- Throws:
 IOException
 
- 
empty
public void empty()
 
 - 
 
 -