org.jboss.ejb3.entity
Class TreeCacheProviderHook

java.lang.Object
  extended by 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

Constructor Summary
TreeCacheProviderHook()
           
 
Method Summary
 org.hibernate.cache.Cache buildCache(String regionName, Properties properties)
          Construct and configure the Cache representation of a named cache region.
 boolean isMinimalPutsEnabledByDefault()
           
 long nextTimestamp()
           
 void start(Properties properties)
          Prepare the underlying JBossCache TreeCache instance.
 void stop()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TreeCacheProviderHook

public TreeCacheProviderHook()
Method Detail

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 region
properties - 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.