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 Constructor Description FeatureCollectionCache()FeatureCollectionCache(int maxSize)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidafterPropertiesSet()InvDatasetFeatureCollectionget(thredds.server.catalog.FeatureCollectionRef fcr)voidinvalidateAll()
-
-
-
Method Detail
-
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
-
-