Class QueryResultsRegionImpl

  • All Implemented Interfaces:
    org.hibernate.cache.spi.DirectAccessRegion, org.hibernate.cache.spi.ExtendedStatisticsSupport, org.hibernate.cache.spi.QueryResultsRegion, org.hibernate.cache.spi.Region, org.infinispan.hibernate.cache.commons.InfinispanBaseRegion, org.infinispan.hibernate.cache.commons.TimeSource

    public final class QueryResultsRegionImpl
    extends Object
    implements org.hibernate.cache.spi.QueryResultsRegion
    • Constructor Detail

      • QueryResultsRegionImpl

        public QueryResultsRegionImpl​(org.infinispan.AdvancedCache cache,
                                      String name,
                                      InfinispanRegionFactory factory)
        Query region constructor
        Parameters:
        cache - instance to store queries
        name - of the query region
        factory - for the query region
    • Method Detail

      • clear

        public void clear()
                   throws org.hibernate.cache.CacheException
        Specified by:
        clear in interface org.hibernate.cache.spi.Region
        Throws:
        org.hibernate.cache.CacheException
      • getFromCache

        public Object getFromCache​(Object key,
                                   org.hibernate.engine.spi.SharedSessionContractImplementor session)
        Specified by:
        getFromCache in interface org.hibernate.cache.spi.DirectAccessRegion
      • putIntoCache

        public void putIntoCache​(Object key,
                                 Object value,
                                 org.hibernate.engine.spi.SharedSessionContractImplementor session)
        Specified by:
        putIntoCache in interface org.hibernate.cache.spi.DirectAccessRegion
      • getName

        public String getName()
        Specified by:
        getName in interface org.infinispan.hibernate.cache.commons.InfinispanBaseRegion
        Specified by:
        getName in interface org.hibernate.cache.spi.Region
      • nextTimestamp

        public long nextTimestamp()
        Specified by:
        nextTimestamp in interface org.infinispan.hibernate.cache.commons.TimeSource
      • destroy

        public void destroy()
                     throws org.hibernate.cache.CacheException
        Specified by:
        destroy in interface org.infinispan.hibernate.cache.commons.InfinispanBaseRegion
        Specified by:
        destroy in interface org.hibernate.cache.spi.Region
        Throws:
        org.hibernate.cache.CacheException
      • checkValid

        public boolean checkValid()
        Checks if the region is valid for operations such as storing new data in the region, or retrieving data from the region.
        Specified by:
        checkValid in interface org.infinispan.hibernate.cache.commons.InfinispanBaseRegion
        Returns:
        true if the region is valid, false otherwise
      • beginInvalidation

        public void beginInvalidation()
        Specified by:
        beginInvalidation in interface org.infinispan.hibernate.cache.commons.InfinispanBaseRegion
      • endInvalidation

        public void endInvalidation()
        Specified by:
        endInvalidation in interface org.infinispan.hibernate.cache.commons.InfinispanBaseRegion
      • getLastRegionInvalidation

        public long getLastRegionInvalidation()
        Specified by:
        getLastRegionInvalidation in interface org.infinispan.hibernate.cache.commons.InfinispanBaseRegion
      • getCache

        public org.infinispan.AdvancedCache getCache()
        Specified by:
        getCache in interface org.infinispan.hibernate.cache.commons.InfinispanBaseRegion
      • runInvalidation

        protected void runInvalidation()
      • getRegionFactory

        public InfinispanRegionFactory getRegionFactory()
        Specified by:
        getRegionFactory in interface org.hibernate.cache.spi.Region
      • getElementCountInMemory

        public long getElementCountInMemory()
        Specified by:
        getElementCountInMemory in interface org.hibernate.cache.spi.ExtendedStatisticsSupport
        Specified by:
        getElementCountInMemory in interface org.infinispan.hibernate.cache.commons.InfinispanBaseRegion
      • getElementCountOnDisk

        public long getElementCountOnDisk()
        Specified by:
        getElementCountOnDisk in interface org.hibernate.cache.spi.ExtendedStatisticsSupport
      • getSizeInMemory

        public long getSizeInMemory()
        Specified by:
        getSizeInMemory in interface org.hibernate.cache.spi.ExtendedStatisticsSupport