Package org.hibernate.cache
Class HashtableCacheProvider
java.lang.Object
org.hibernate.cache.HashtableCacheProvider
- All Implemented Interfaces:
CacheProvider
A simple in-memory Hashtable-based cache impl.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuildCache(String regionName, Properties properties) Configure the cachebooleanlongGenerate a timestampvoidstart(Properties properties) Callback to perform any necessary initialization of the underlying cache implementation during SessionFactory construction.voidstop()Callback to perform any necessary cleanup of the underlying cache implementation during SessionFactory.close().
-
Constructor Details
-
HashtableCacheProvider
public HashtableCacheProvider()
-
-
Method Details
-
buildCache
Description copied from interface:CacheProviderConfigure the cache- Specified by:
buildCachein interfaceCacheProvider- Parameters:
regionName- the name of the cache regionproperties- configuration settings- Throws:
CacheException
-
nextTimestamp
public long nextTimestamp()Description copied from interface:CacheProviderGenerate a timestamp- Specified by:
nextTimestampin interfaceCacheProvider
-
start
Callback to perform any necessary initialization of the underlying cache implementation during SessionFactory construction.- Specified by:
startin interfaceCacheProvider- Parameters:
properties- current configuration settings.- Throws:
CacheException
-
stop
public void stop()Callback to perform any necessary cleanup of the underlying cache implementation during SessionFactory.close().- Specified by:
stopin interfaceCacheProvider
-
isMinimalPutsEnabledByDefault
public boolean isMinimalPutsEnabledByDefault()- Specified by:
isMinimalPutsEnabledByDefaultin interfaceCacheProvider
-