org.jboss.hibernate.cache
Class DeployedTreeCacheProvider
java.lang.Object
org.jboss.hibernate.cache.DeployedTreeCacheProvider
- public class DeployedTreeCacheProvider
- extends java.lang.Object
A Hibernate CacheProvider implementation which knows how to
obtain a deployed JBossCache via its JMX ObjectName.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
OBJECT_NAME_PROP
public static final java.lang.String OBJECT_NAME_PROP
- See Also:
- Constant Field Values (src)
DEFAULT_OBJECT_NAME
public static final java.lang.String DEFAULT_OBJECT_NAME
- See Also:
- Constant Field Values (src)
DeployedTreeCacheProvider
public DeployedTreeCacheProvider()
start
public void start(java.util.Properties properties)
throws CacheException
- Throws:
CacheException
stop
public void stop()
isMinimalPutsEnabledByDefault
public boolean isMinimalPutsEnabledByDefault()
buildCache
public Cache buildCache(java.lang.String name,
java.util.Properties properties)
throws CacheException
- Called by Hibernate in order to build the given named cache "region".
- Parameters:
name
- The cache "region" name.properties
- The configuration properties.
- Returns:
- The constructed Cache wrapper around the jndi-deployed TreeCache.
- Throws:
CacheException
- Generally indicates a problem locating the TreeCache.
nextTimestamp
public long nextTimestamp()