Class TimestampsRegionImpl
java.lang.Object
org.infinispan.hibernate.cache.v62.impl.TimestampsRegionImpl
- All Implemented Interfaces:
org.hibernate.cache.spi.DirectAccessRegion,org.hibernate.cache.spi.ExtendedStatisticsSupport,org.hibernate.cache.spi.Region,org.hibernate.cache.spi.TimestampsRegion,org.infinispan.hibernate.cache.commons.InfinispanBaseRegion,org.infinispan.hibernate.cache.commons.TimeSource
- Direct Known Subclasses:
ClusteredTimestampsRegionImpl
public class TimestampsRegionImpl
extends Object
implements org.hibernate.cache.spi.TimestampsRegion
-
Constructor Summary
ConstructorsConstructorDescriptionTimestampsRegionImpl(org.infinispan.AdvancedCache cache, String name, InfinispanRegionFactory factory) -
Method Summary
Modifier and TypeMethodDescriptionvoidbooleanChecks if the region is valid for operations such as storing new data in the region, or retrieving data from the region.voidclear()voiddestroy()voidorg.infinispan.AdvancedCachegetCache()longlonggetFromCache(Object key, org.hibernate.engine.spi.SharedSessionContractImplementor session) longgetName()longprotected org.infinispan.AdvancedCachegetTimestampsPutCache(org.infinispan.AdvancedCache cache) longvoidputIntoCache(Object key, Object value, org.hibernate.engine.spi.SharedSessionContractImplementor session) protected voidMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.infinispan.hibernate.cache.commons.InfinispanBaseRegion
invalidateRegionMethods inherited from interface org.hibernate.cache.spi.Region
clear, destroy, getName, getRegionFactory
-
Constructor Details
-
TimestampsRegionImpl
public TimestampsRegionImpl(org.infinispan.AdvancedCache cache, String name, InfinispanRegionFactory factory)
-
-
Method Details
-
getTimestampsPutCache
protected org.infinispan.AdvancedCache getTimestampsPutCache(org.infinispan.AdvancedCache cache) -
getName
- Specified by:
getNamein interfaceorg.infinispan.hibernate.cache.commons.InfinispanBaseRegion- Specified by:
getNamein interfaceorg.hibernate.cache.spi.Region
-
nextTimestamp
public long nextTimestamp()- Specified by:
nextTimestampin interfaceorg.infinispan.hibernate.cache.commons.TimeSource
-
destroy
public void destroy() throws org.hibernate.cache.CacheException- Specified by:
destroyin interfaceorg.infinispan.hibernate.cache.commons.InfinispanBaseRegion- Specified by:
destroyin interfaceorg.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:
checkValidin interfaceorg.infinispan.hibernate.cache.commons.InfinispanBaseRegion- Returns:
- true if the region is valid, false otherwise
-
clear
public void clear()- Specified by:
clearin interfaceorg.hibernate.cache.spi.Region
-
beginInvalidation
public void beginInvalidation()- Specified by:
beginInvalidationin interfaceorg.infinispan.hibernate.cache.commons.InfinispanBaseRegion
-
endInvalidation
public void endInvalidation()- Specified by:
endInvalidationin interfaceorg.infinispan.hibernate.cache.commons.InfinispanBaseRegion
-
getLastRegionInvalidation
public long getLastRegionInvalidation()- Specified by:
getLastRegionInvalidationin interfaceorg.infinispan.hibernate.cache.commons.InfinispanBaseRegion
-
getCache
public org.infinispan.AdvancedCache getCache()- Specified by:
getCachein interfaceorg.infinispan.hibernate.cache.commons.InfinispanBaseRegion
-
runInvalidation
protected void runInvalidation() -
getRegionFactory
- Specified by:
getRegionFactoryin interfaceorg.hibernate.cache.spi.Region
-
getElementCountInMemory
public long getElementCountInMemory()- Specified by:
getElementCountInMemoryin interfaceorg.hibernate.cache.spi.ExtendedStatisticsSupport- Specified by:
getElementCountInMemoryin interfaceorg.infinispan.hibernate.cache.commons.InfinispanBaseRegion
-
getElementCountOnDisk
public long getElementCountOnDisk()- Specified by:
getElementCountOnDiskin interfaceorg.hibernate.cache.spi.ExtendedStatisticsSupport
-
getSizeInMemory
public long getSizeInMemory()- Specified by:
getSizeInMemoryin interfaceorg.hibernate.cache.spi.ExtendedStatisticsSupport
-