Class 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 Detail

      • FeatureCollectionCache

        public FeatureCollectionCache()
      • FeatureCollectionCache

        public FeatureCollectionCache​(int maxSize)
    • Method Detail

      • afterPropertiesSet

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

        public void invalidateAll()