Package org.hibernate.cache
Interface CacheProvider
- All Known Implementing Classes:
AbstractJndiBoundCacheProvider,HashtableCacheProvider,NoCacheProvider
public interface CacheProvider
Deprecated.
As of 3.3; see for details.
Support for pluggable caches.
-
Method Summary
Modifier and TypeMethodDescriptionbuildCache(String regionName, Properties properties) Deprecated.Configure the cachebooleanDeprecated.longDeprecated.Generate a timestampvoidstart(Properties properties) Deprecated.Callback to perform any necessary initialization of the underlying cache implementation during SessionFactory construction.voidstop()Deprecated.Callback to perform any necessary cleanup of the underlying cache implementation during SessionFactory.close().
-
Method Details
-
buildCache
Deprecated.Configure the cache- Parameters:
regionName- the name of the cache regionproperties- configuration settings- Throws:
CacheException
-
nextTimestamp
long nextTimestamp()Deprecated.Generate a timestamp -
start
Deprecated.Callback to perform any necessary initialization of the underlying cache implementation during SessionFactory construction.- Parameters:
properties- current configuration settings.- Throws:
CacheException
-
stop
void stop()Deprecated.Callback to perform any necessary cleanup of the underlying cache implementation during SessionFactory.close(). -
isMinimalPutsEnabledByDefault
boolean isMinimalPutsEnabledByDefault()Deprecated.
-