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 Details

    • FeatureCollectionCache

      public FeatureCollectionCache()
    • FeatureCollectionCache

      public FeatureCollectionCache(int maxSize)
  • Method Details

    • afterPropertiesSet

      public void afterPropertiesSet()
      Specified by:
      afterPropertiesSet in interface org.springframework.beans.factory.InitializingBean
    • invalidateAll

      public void invalidateAll()
    • get

      public InvDatasetFeatureCollection get(thredds.server.catalog.FeatureCollectionRef fcr) throws IOException
      Throws:
      IOException