org.gcube.contentmanagement.gcubedocumentlibrary.io
Interface DocumentCache

All Known Implementing Classes:
SimpleLRUCache

public interface DocumentCache

A cache of GCubeDocuments to use with CachingReaders.

Author:
Fabio Simeoni (University of Strathclyde)

Method Summary
 GCubeDocument get(java.lang.String id)
          Returns a document description from the cache if it exists;
 void put(GCubeDocument doc)
          Put a document description in the cache.
 

Method Detail

get

GCubeDocument get(java.lang.String id)
Returns a document description from the cache if it exists;

Parameters:
id - the identifier of the description.
Returns:
the description.

put

void put(GCubeDocument doc)
Put a document description in the cache.

Parameters:
doc - the document