org.jboss.hibernate.jbc.cacheprovider
Class OptimisticJmxBoundTreeCacheProvider

java.lang.Object
  extended by org.hibernate.cache.TreeCacheProvider
      extended by org.jboss.hibernate.jbc.cacheprovider.JmxBoundTreeCacheProvider
          extended by org.jboss.hibernate.jbc.cacheprovider.OptimisticJmxBoundTreeCacheProvider
All Implemented Interfaces:
org.hibernate.cache.CacheProvider

Deprecated. JmxBoundTreeCacheProvider supports both optimistic and pessimistic cache configurations.

public class OptimisticJmxBoundTreeCacheProvider
extends JmxBoundTreeCacheProvider

Trivial JmxBoundTreeCacheProvider subclass that logs a warning in start if the underlying JBoss Cache is not configured for optimistic locking. Like the superclass, will provide working Cache implementations whether JBoss Cache is configured for optimistic locking or not; the only added behavior is the logging of the warning if the JBoss Cache configuration doesn't match the intent implied by the use of this class.

Author:
Galder Zamarreno, Brian Stansberry

Field Summary
 
Fields inherited from class org.hibernate.cache.TreeCacheProvider
CONFIG_RESOURCE, DEFAULT_CONFIG
 
Constructor Summary
OptimisticJmxBoundTreeCacheProvider()
          Deprecated.  
 
Method Summary
 void start(Properties properties)
          Deprecated. Find the underlying JBoss Cache TreeCache instance.
 
Methods inherited from class org.jboss.hibernate.jbc.cacheprovider.JmxBoundTreeCacheProvider
buildCache, getTransactionManager, getUnderlyingCache, isMinimalPutsEnabledByDefault, isOptimistic, nextTimestamp, stop
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OptimisticJmxBoundTreeCacheProvider

public OptimisticJmxBoundTreeCacheProvider()
Deprecated. 
Method Detail

start

public void start(Properties properties)
           throws org.hibernate.cache.CacheException
Deprecated. 
Description copied from class: JmxBoundTreeCacheProvider
Find the underlying JBoss Cache TreeCache instance.

Specified by:
start in interface org.hibernate.cache.CacheProvider
Overrides:
start in class JmxBoundTreeCacheProvider
Parameters:
properties - All current config settings. If #HIBERNATE_CACHE_OBJECT_NAME_PROPERTY is provided, the value will be the expected name of the cache; otherwise #DEFAULT_MBEAN_OBJECT_NAME will be used.
Throws:
org.hibernate.cache.CacheException - Indicates a problem preparing cache for use.


Copyright © 2008 JBoss, a division of Red Hat, Inc.. All Rights Reserved.