Class DirectAccessRegionTemplate
java.lang.Object
org.hibernate.cache.spi.support.AbstractRegion
org.hibernate.cache.spi.support.DirectAccessRegionTemplate
- All Implemented Interfaces:
DirectAccessRegion, Region
- Direct Known Subclasses:
QueryResultsRegionTemplate, TimestampsRegionTemplate
public abstract class DirectAccessRegionTemplate
extends AbstractRegion
implements DirectAccessRegion
Bridge between DirectAccessRegion and StorageAccess
-
Constructor Summary
ConstructorsConstructorDescriptionDirectAccessRegionTemplate(String name, RegionFactory regionFactory, StorageAccess storageAccess) Constructs aDirectAccessRegionTemplate. -
Method Summary
Modifier and TypeMethodDescriptionvoidclear()Clear all data cached in the regionvoiddestroy()The "end state" contract of the region's lifecycle.getFromCache(Object key, SharedSessionContractImplementor session) Get value by keyvoidputIntoCache(Object key, Object value, SharedSessionContractImplementor session) Put a value by keyMethods inherited from class AbstractRegion
getName, getRegionFactoryMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface Region
getName, getRegionFactory
-
Constructor Details
-
DirectAccessRegionTemplate
public DirectAccessRegionTemplate(String name, RegionFactory regionFactory, StorageAccess storageAccess) Constructs aDirectAccessRegionTemplate.- Parameters:
name- - the unqualified region nameregionFactory- - the region factorystorageAccess- - the cache storage access strategy
-
-
Method Details
-
getStorageAccess
-
clear
-
destroy
public void destroy()Description copied from interface:RegionThe "end state" contract of the region's lifecycle. Called duringSessionFactory.close()to give the region a chance to cleanup.
-