org.jboss.hibernate.jbc.cacheprovider
Class OptimisticTreeCacheProvider
java.lang.Object
org.jboss.hibernate.jbc.cacheprovider.TreeCacheProvider
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
|
Method Summary |
void |
start(Properties properties)
Deprecated. Prepare the underlying JBossCache TreeCache instance. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
OptimisticTreeCacheProvider
public OptimisticTreeCacheProvider()
- Deprecated.
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.