| 
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.hibernate.cache.TreeCacheProvider
Support for a standalone JBossCache (TreeCache) instance. The JBossCache is configured via a local config resource.
| Field Summary | |
static String | 
CONFIG_RESOURCE
Deprecated. use org.hibernate.cfg.Environment.CACHE_PROVIDER_CONFIG | 
static String | 
DEFAULT_CONFIG
 | 
| Constructor Summary | |
TreeCacheProvider()
 | 
|
| Method Summary | |
 Cache | 
buildCache(String regionName,
           Properties properties)
Construct and configure the Cache representation of a named cache region.  | 
 org.jboss.cache.TreeCache | 
getUnderlyingCache()
 | 
 boolean | 
isMinimalPutsEnabledByDefault()
 | 
 long | 
nextTimestamp()
Generate a timestamp  | 
 void | 
start(Properties properties)
Prepare the underlying JBossCache TreeCache instance.  | 
 void | 
stop()
Callback to perform any necessary cleanup of the underlying cache implementation during SessionFactory.close().  | 
| Methods inherited from class java.lang.Object | 
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Field Detail | 
public static final String CONFIG_RESOURCE
org.hibernate.cfg.Environment.CACHE_PROVIDER_CONFIG
public static final String DEFAULT_CONFIG
| Constructor Detail | 
public TreeCacheProvider()
| Method Detail | 
public Cache buildCache(String regionName, Properties properties) throws CacheException
buildCache in interface CacheProviderregionName - the name of the cache regionproperties - configuration settings
CacheException - Indicates an error building the cache region.public long nextTimestamp()
CacheProvider
nextTimestamp in interface CacheProviderpublic void start(Properties properties)
start in interface CacheProviderproperties - All current config settings.
CacheException - Indicates a problem preparing cache for use.public void stop()
CacheProvider
stop in interface CacheProviderpublic boolean isMinimalPutsEnabledByDefault()
isMinimalPutsEnabledByDefault in interface CacheProviderpublic org.jboss.cache.TreeCache getUnderlyingCache()
  | 
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||