org.hibernate.cache.Region |
![]() |
Defines a contract for accessing a particular named region within the underlying cache implementation.
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Determine whether this region contains data for the given key.
| |||||||||||
The "end state" contract of the region's lifecycle.
| |||||||||||
The count of entries currently contained in the regions in-memory store.
| |||||||||||
The count of entries currently contained in the regions disk store.
| |||||||||||
Retrieve the name of this region.
| |||||||||||
The number of bytes is this cache region currently consuming in memory.
| |||||||||||
Get the contents of this region as a map.
|
Determine whether this region contains data for the given key.
The semantic here is whether the cache contains data visible for the current call context. This should be viewed as a "best effort", meaning blocking should be avoid if possible.key | The cache key |
---|
The "end state" contract of the region's lifecycle. Called
during close()
to give
the region a chance to cleanup.
CacheException | Indicates problem shutting down |
---|
The count of entries currently contained in the regions in-memory store.
The count of entries currently contained in the regions disk store.
The number of bytes is this cache region currently consuming in memory.
Get the contents of this region as a map.
Implementors which do not support this notion should simply return an empty map.