Interface CacheImplementor

    • Method Detail

      • getRegionFactory

        RegionFactory getRegionFactory()
        The underlying RegionFactory in use.
      • prime

        void prime​(Set<DomainDataRegionConfig> cacheRegionConfigs)
        An initialization phase allowing the caching provider to prime itself from the passed configs
        Since:
        5.3
      • getTimestampsCache

        TimestampsCache getTimestampsCache()
        Find the cache data access strategy for Hibernate's timestamps cache. Will return null if Hibernate is not configured for query result caching
        Since:
        5.3
      • getDefaultQueryResultsCache

        QueryResultsCache getDefaultQueryResultsCache()
        Access to the "default" region used to store query results when caching was requested but no region was explicitly named. Will return null if Hibernate is not configured for query result caching
      • getQueryResultsCache

        QueryResultsCache getQueryResultsCache​(String regionName)
        Get query cache by region name or create a new one if none exist. If the region name is null, then default query cache region will be returned. Will return null if Hibernate is not configured for query result caching
      • getQueryResultsCacheStrictly

        QueryResultsCache getQueryResultsCacheStrictly​(String regionName)
        Get the named QueryResultRegionAccess but not creating one if it does not already exist. This is intended for use by statistics. Will return null if Hibernate is not configured for query result caching or if no such region (yet) exists
        Since:
        5.3
      • close

        void close()
        Close this "cache", releasing all underlying resources.
      • getEntityRegionAccess

        EntityDataAccess getEntityRegionAccess​(NavigableRole rootEntityName)
        Find the cache data access strategy for an entity. Will return null when the entity is not configured for caching.
        Parameters:
        rootEntityName - The NavigableRole representation of the root entity
      • getNaturalIdCacheRegionAccessStrategy

        NaturalIdDataAccess getNaturalIdCacheRegionAccessStrategy​(NavigableRole rootEntityName)
        Find the cache data access strategy for the given entity's natural-id cache. Will return null when the entity does not define a natural-id, or its natural-id is not configured for caching.
        Parameters:
        rootEntityName - The NavigableRole representation of the root entity
      • getCollectionRegionAccess

        CollectionDataAccess getCollectionRegionAccess​(NavigableRole collectionRole)
        Find the cache data access strategy for the given collection. Will return null when the collection is not configured for caching.