org.hibernate.cache
Interface CacheProvider
- AbstractJndiBoundCacheProvider, HashtableCacheProvider, NoCacheProvider
public interface CacheProvider
Support for pluggable caches.
Cache | buildCache(String regionName, Properties properties) - Configure the cache
|
boolean | isMinimalPutsEnabledByDefault()
|
long | nextTimestamp() - Generate a timestamp
|
void | start(Properties properties) - Callback to perform any necessary initialization of the underlying cache implementation
during SessionFactory construction.
|
void | stop() - Callback to perform any necessary cleanup of the underlying cache implementation
during SessionFactory.close().
|
buildCache
public Cache buildCache(String regionName,
Properties properties)
throws CacheException
Configure the cache
regionName
- the name of the cache regionproperties
- configuration settings
isMinimalPutsEnabledByDefault
public boolean isMinimalPutsEnabledByDefault()
nextTimestamp
public long nextTimestamp()
Generate a timestamp
start
public void start(Properties properties)
throws CacheException
Callback to perform any necessary initialization of the underlying cache implementation
during SessionFactory construction.
properties
- current configuration settings.
stop
public void stop()
Callback to perform any necessary cleanup of the underlying cache implementation
during SessionFactory.close().