Package thredds.featurecollection
Class FeatureCollectionCache
java.lang.Object
thredds.featurecollection.FeatureCollectionCache
- All Implemented Interfaces:
org.springframework.beans.factory.InitializingBean
@Component
public class FeatureCollectionCache
extends Object
implements org.springframework.beans.factory.InitializingBean
Keep cache of InvDatasetFeatureCollection
Using guava cache.
On cache miss, call InvDatasetFeatureCollection.factory().
On cache remove, call InvDatasetFeatureCollection.close().
The cache is filled lazily, when that fc is requested.
- Since:
- 4/2/2015
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
FeatureCollectionCache
public FeatureCollectionCache() -
FeatureCollectionCache
public FeatureCollectionCache(int maxSize)
-
-
Method Details
-
afterPropertiesSet
public void afterPropertiesSet()- Specified by:
afterPropertiesSetin interfaceorg.springframework.beans.factory.InitializingBean
-
invalidateAll
public void invalidateAll() -
get
public InvDatasetFeatureCollection get(thredds.server.catalog.FeatureCollectionRef fcr) throws IOException - Throws:
IOException
-