|
GigaSpaces XAP 10.1 API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.openspaces.hibernate.cache.TransactionalMapCache
public class TransactionalMapCache
Transaction map cache implements Hibenrate second level cache transactionally by integrating with JTA.
| Constructor Summary | |
|---|---|
TransactionalMapCache(String regionName,
IMap map,
long timeToLive,
long waitForResponse,
TransactionManager transactionManager)
|
|
| Method Summary | |
|---|---|
void |
clear()
Clear the cache |
void |
destroy()
Clean up |
Object |
get(Object key)
Get an item from the cache, nontransactionally |
long |
getElementCountInMemory()
The count of entries currently contained in the regions in-memory store. |
long |
getElementCountOnDisk()
The count of entries currently contained in the regions disk store. |
String |
getRegionName()
Get the name of the cache region |
long |
getSizeInMemory()
The number of bytes is this cache region currently consuming in memory. |
int |
getTimeout()
Get a reasonable "lock timeout" |
void |
lock(Object key)
If this is a clustered cache, lock the item |
long |
nextTimestamp()
Generate a timestamp |
void |
put(Object key,
Object value)
Add an item to the cache, nontransactionally, with failfast semantics |
Object |
read(Object key)
Get an item from the cache |
void |
remove(Object key)
Remove an item from the cache |
Map |
toMap()
optional operation |
void |
unlock(Object key)
If this is a clustered cache, unlock the item |
void |
update(Object key,
Object value)
Add an item to the cache |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public TransactionalMapCache(String regionName,
IMap map,
long timeToLive,
long waitForResponse,
TransactionManager transactionManager)
throws org.hibernate.cache.CacheException
org.hibernate.cache.CacheException| Method Detail |
|---|
public Object read(Object key)
throws org.hibernate.cache.CacheException
read in interface org.hibernate.cache.Cacheorg.hibernate.cache.CacheException
public Object get(Object key)
throws org.hibernate.cache.CacheException
get in interface org.hibernate.cache.Cacheorg.hibernate.cache.CacheException
public void put(Object key,
Object value)
throws org.hibernate.cache.CacheException
put in interface org.hibernate.cache.Cacheorg.hibernate.cache.CacheException
public void update(Object key,
Object value)
throws org.hibernate.cache.CacheException
update in interface org.hibernate.cache.Cacheorg.hibernate.cache.CacheException
public void remove(Object key)
throws org.hibernate.cache.CacheException
remove in interface org.hibernate.cache.Cacheorg.hibernate.cache.CacheException
public void clear()
throws org.hibernate.cache.CacheException
clear in interface org.hibernate.cache.Cacheorg.hibernate.cache.CacheException
public void destroy()
throws org.hibernate.cache.CacheException
destroy in interface org.hibernate.cache.Cacheorg.hibernate.cache.CacheException
public void lock(Object key)
throws org.hibernate.cache.CacheException
lock in interface org.hibernate.cache.Cacheorg.hibernate.cache.CacheException
public void unlock(Object key)
throws org.hibernate.cache.CacheException
unlock in interface org.hibernate.cache.Cacheorg.hibernate.cache.CacheExceptionpublic long nextTimestamp()
nextTimestamp in interface org.hibernate.cache.Cachepublic int getTimeout()
getTimeout in interface org.hibernate.cache.Cachepublic String getRegionName()
getRegionName in interface org.hibernate.cache.Cachepublic long getSizeInMemory()
getSizeInMemory in interface org.hibernate.cache.Cachepublic long getElementCountInMemory()
getElementCountInMemory in interface org.hibernate.cache.Cachepublic long getElementCountOnDisk()
getElementCountOnDisk in interface org.hibernate.cache.Cachepublic Map toMap()
toMap in interface org.hibernate.cache.Cache
|
GigaSpaces XAP 10.1 API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||