org.jboss.ejb3.entity
Class TreeCacheProviderHook
java.lang.Object
org.jboss.ejb3.entity.TreeCacheProviderHook
- All Implemented Interfaces:
- org.hibernate.cache.CacheProvider
public class TreeCacheProviderHook
- extends Object
- implements org.hibernate.cache.CacheProvider
Support for a standalone JBossCache (TreeCache) instance. The JBossCache is configured
via a local config resource.
- Author:
- Gavin King
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TreeCacheProviderHook
public TreeCacheProviderHook()
buildCache
public org.hibernate.cache.Cache buildCache(String regionName,
Properties properties)
throws org.hibernate.cache.CacheException
- Construct and configure the Cache representation of a named cache region.
- Specified by:
buildCache in interface org.hibernate.cache.CacheProvider
- Parameters:
regionName - the name of the cache regionproperties - configuration settings
- Returns:
- The Cache representation of the named cache region.
- Throws:
org.hibernate.cache.CacheException - Indicates an error building the cache region.
isMinimalPutsEnabledByDefault
public boolean isMinimalPutsEnabledByDefault()
- Specified by:
isMinimalPutsEnabledByDefault in interface org.hibernate.cache.CacheProvider
nextTimestamp
public long nextTimestamp()
- Specified by:
nextTimestamp in interface org.hibernate.cache.CacheProvider
start
public void start(Properties properties)
- Prepare the underlying JBossCache TreeCache instance.
- Specified by:
start in interface org.hibernate.cache.CacheProvider
- Parameters:
properties - All current config settings.
- Throws:
org.hibernate.cache.CacheException - Indicates a problem preparing cache for use.
stop
public void stop()
- Specified by:
stop in interface org.hibernate.cache.CacheProvider
Copyright © 2002 JBoss Group, LLC. All Rights Reserved.