org.jboss.hibernate.jbc.cacheprovider
Class JBCCache
java.lang.Object
org.jboss.hibernate.jbc.cacheprovider.JBCCache
- All Implemented Interfaces:
- org.hibernate.cache.Cache
public class JBCCache
- extends Object
- implements org.hibernate.cache.Cache
Subclass of the standard org.hibernate.cache.TreeCache used as
a workaround until issues related to JBCLUSTER-150 are resolved in Hibernate.
- Author:
- Gavin King, Brian Stansberry, Galder Zamarreno
JBCCache
public JBCCache(org.jboss.cache.TreeCache cache,
String regionName,
CacheProperties cacheProperties,
TransactionManager transactionManager)
throws org.hibernate.cache.CacheException
- Throws:
org.hibernate.cache.CacheException
get
public Object get(Object key)
throws org.hibernate.cache.CacheException
- Specified by:
get in interface org.hibernate.cache.Cache
- Throws:
org.hibernate.cache.CacheException
read
public Object read(Object key)
throws org.hibernate.cache.CacheException
- Specified by:
read in interface org.hibernate.cache.Cache
- Throws:
org.hibernate.cache.CacheException
update
public void update(Object key,
Object value)
throws org.hibernate.cache.CacheException
- Specified by:
update in interface org.hibernate.cache.Cache
- Throws:
org.hibernate.cache.CacheException
put
public void put(Object key,
Object value)
throws org.hibernate.cache.CacheException
- Specified by:
put in interface org.hibernate.cache.Cache
- Throws:
org.hibernate.cache.CacheException
remove
public void remove(Object key)
throws org.hibernate.cache.CacheException
- Specified by:
remove in interface org.hibernate.cache.Cache
- Throws:
org.hibernate.cache.CacheException
clear
public void clear()
throws org.hibernate.cache.CacheException
- Specified by:
clear in interface org.hibernate.cache.Cache
- Throws:
org.hibernate.cache.CacheException
destroy
public void destroy()
throws org.hibernate.cache.CacheException
- Specified by:
destroy in interface org.hibernate.cache.Cache
- Throws:
org.hibernate.cache.CacheException
lock
public void lock(Object key)
throws org.hibernate.cache.CacheException
- Specified by:
lock in interface org.hibernate.cache.Cache
- Throws:
org.hibernate.cache.CacheException
unlock
public void unlock(Object key)
throws org.hibernate.cache.CacheException
- Specified by:
unlock in interface org.hibernate.cache.Cache
- Throws:
org.hibernate.cache.CacheException
nextTimestamp
public long nextTimestamp()
- Specified by:
nextTimestamp in interface org.hibernate.cache.Cache
getTimeout
public int getTimeout()
- Specified by:
getTimeout in interface org.hibernate.cache.Cache
getRegionName
public String getRegionName()
- Specified by:
getRegionName in interface org.hibernate.cache.Cache
getSizeInMemory
public long getSizeInMemory()
- Specified by:
getSizeInMemory in interface org.hibernate.cache.Cache
getElementCountInMemory
public long getElementCountInMemory()
- Specified by:
getElementCountInMemory in interface org.hibernate.cache.Cache
getElementCountOnDisk
public long getElementCountOnDisk()
- Specified by:
getElementCountOnDisk in interface org.hibernate.cache.Cache
toMap
public Map toMap()
- Specified by:
toMap in interface org.hibernate.cache.Cache
toString
public String toString()
- Overrides:
toString in class Object
Copyright © 2008 JBoss, a division of Red Hat, Inc.. All Rights Reserved.