接口 Region
-
- 所有已知实现类:
AbstractDomainDataRegion,AbstractRegion,DirectAccessRegionTemplate,DomainDataRegionImpl,DomainDataRegionTemplate,QueryResultsRegionTemplate,TimestampsRegionTemplate
public interface RegionContract for a named "region". The concept of a Region might not necessarily correlate to a specific concept in the underlying caching provider - it is just a thing that can be referenced by name later. A region's name is "unqualified"; i.e. it is not prefixed bySessionFactoryOptions.getCacheRegionPrefix(). Region is the base contract defining some common characteristics regardless of the type of data intended to be stored within this Region. The more specific sub-types areDomainDataRegion(storing entity, collection and natural-id data) andDirectAccessRegion(storing query result and timestamp data).- 作者:
- Steve Ebersole
-
-
方法概要
所有方法 实例方法 抽象方法 修饰符和类型 方法 说明 voidclear()Clear all data cached in the regionvoiddestroy()The "end state" contract of the region's lifecycle.StringgetName()Retrieve the unqualified name of this region.RegionFactorygetRegionFactory()The RegionFactory that generated this Region
-
-
-
方法详细资料
-
getName
String getName()
Retrieve the unqualified name of this region.
-
getRegionFactory
RegionFactory getRegionFactory()
The RegionFactory that generated this Region
-
clear
void clear()
Clear all data cached in the region
-
destroy
void destroy() throws CacheExceptionThe "end state" contract of the region's lifecycle. Called duringSessionFactory.close()to give the region a chance to cleanup.- 抛出:
CacheException- Indicates problem shutting down
-
-