org.jboss.hibernate.jbc.cacheprovider
Class OptimisticTreeCacheProvider

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

Deprecated. TreeCacheProvider supports both optimistic and pessimistic cache configurations.

public class OptimisticTreeCacheProvider
extends TreeCacheProvider

Trivial TreeCacheProvider 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.jboss.hibernate.jbc.cacheprovider.TreeCacheProvider
CONFIG_RESOURCE, DEFAULT_CONFIG, LEGACY_DEFAULT_CONFIG
 
Constructor Summary
OptimisticTreeCacheProvider()
          Deprecated.  
 
Method Summary
 void start(Properties properties)
          Deprecated. Prepare the underlying JBossCache TreeCache instance.
 
Methods inherited from class org.jboss.hibernate.jbc.cacheprovider.TreeCacheProvider
buildCache, configFileExists, 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

OptimisticTreeCacheProvider

public OptimisticTreeCacheProvider()
Deprecated. 
Method Detail

start

public void start(Properties properties)
           throws org.hibernate.cache.CacheException
Deprecated. 
Description copied from class: TreeCacheProvider
Prepare the underlying JBossCache TreeCache instance.

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


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