public interface Region
Contract 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.
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 are DomainDataRegion
(storing entity, collection and natural-id data) and
DirectAccessRegion
(storing query result and timestamp
data).
Modifier and Type | Method and Description |
---|---|
void |
clear()
Clear all data cached in the region
|
void |
destroy()
The "end state" contract of the region’s lifecycle.
|
String |
getName()
Retrieve the name of this region.
|
RegionFactory |
getRegionFactory()
The RegionFactory that generated this Region
|
String getName()
Retrieve the name of this region.
RegionFactory getRegionFactory()
The RegionFactory that generated this Region
void clear()
Clear all data cached in the region
void destroy() throws CacheException
The "end state" contract of the region’s lifecycle. Called
during SessionFactory.close()
to give
the region a chance to cleanup.
CacheException
- Indicates problem shutting downCopyright © 2001-2018 Red Hat, Inc. All Rights Reserved.