站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > Hibernate 2.1.8 正式版 API 英文文档

TreeCacheProvider (Hibernate API Documentation) - Hibernate 2.1.8 正式版 API 英文文档


net.sf.hibernate.cache
Class TreeCacheProvider

java.lang.Object
  extended bynet.sf.hibernate.cache.TreeCacheProvider
All Implemented Interfaces:
CacheProvider

public class TreeCacheProvider
extends Object
implements CacheProvider

Support for JBoss TreeCache

Author:
Gavin King

Constructor Summary
TreeCacheProvider()
           
 
Method Summary
 Cache buildCache(String regionName, Properties properties)
          Construct and configure the Cache representation of a named cache region.
 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
 

Constructor Detail

TreeCacheProvider

public TreeCacheProvider()
Method Detail

buildCache

public Cache buildCache(String regionName,
                        Properties properties)
                 throws CacheException
Construct and configure the Cache representation of a named cache region.

Specified by:
buildCache in interface CacheProvider
Parameters:
regionName - the name of the cache region
properties - configuration settings
Returns:
The Cache representation of the named cache region.
Throws:
CacheException - Indicates an error building the cache region.

nextTimestamp

public long nextTimestamp()
Description copied from interface: CacheProvider
Generate a timestamp

Specified by:
nextTimestamp in interface CacheProvider

start

public void start(Properties properties)
           throws CacheException
Prepare the underlying JBossCache TreeCache instance.

Specified by:
start in interface CacheProvider
Parameters:
properties - All current config settings.
Throws:
CacheException - Indicates a problem preparing cache for use.

stop

public void stop()
Description copied from interface: CacheProvider
Callback to perform any necessary cleanup of the underlying cache implementation during SessionFactory.close().

Specified by:
stop in interface CacheProvider