org.outerj.daisy.cache
Interface DocumentCache

All Known Implementing Classes:
DocumentCacheImpl

public interface DocumentCache

The service that caches Documents.


Method Summary
 void clear()
          Clears the entire cache.
 org.outerj.daisy.repository.commonimpl.DocumentImpl get(long documentId, long branchId, long languageId)
          Returns the cached Document, or null if it is not in the cache.
 org.outerj.daisy.repository.AvailableVariants getAvailableVariants(long documentId)
           
 void put(long documentId, org.outerj.daisy.repository.AvailableVariants availableVariants)
           
 void put(long documentId, long branchId, long languageId, org.outerj.daisy.repository.commonimpl.DocumentImpl document)
           
 void remove(long documentId)
          Removes all cached variants of the document.
 void remove(long documentId, long branchId, long languageId)
          Removes a cached Document, or does nothing if it is not in the cache.
 void removeAvailableVariants(long documentId)
           
 

Method Detail

put

void put(long documentId,
         long branchId,
         long languageId,
         org.outerj.daisy.repository.commonimpl.DocumentImpl document)

get

org.outerj.daisy.repository.commonimpl.DocumentImpl get(long documentId,
                                                        long branchId,
                                                        long languageId)
Returns the cached Document, or null if it is not in the cache.


remove

void remove(long documentId,
            long branchId,
            long languageId)
Removes a cached Document, or does nothing if it is not in the cache.


remove

void remove(long documentId)
Removes all cached variants of the document.


clear

void clear()
Clears the entire cache. Should only be used exceptionally to avoid performance drops.


put

void put(long documentId,
         org.outerj.daisy.repository.AvailableVariants availableVariants)

getAvailableVariants

org.outerj.daisy.repository.AvailableVariants getAvailableVariants(long documentId)

removeAvailableVariants

void removeAvailableVariants(long documentId)


Copyright © -2012 . All Rights Reserved.