GigaSpaces XAP 9.7.2 API

org.openspaces.hibernate.cache
Class TransactionalMapCacheProvider

java.lang.Object
  extended by org.openspaces.hibernate.cache.AbstractMapCacheProvider
      extended by org.openspaces.hibernate.cache.TransactionalMapCacheProvider
All Implemented Interfaces:
org.hibernate.cache.CacheProvider

public class TransactionalMapCacheProvider
extends AbstractMapCacheProvider

Transactional Map cache provider allowing to use GigaSpaces as a second level cache within a JTA environment. Uses GigaSpaces XA support to register with the JTA transaction manager. Uses TransactionalMapCache as the cache implementation.

Author:
kimchy

Field Summary
 
Fields inherited from class org.openspaces.hibernate.cache.AbstractMapCacheProvider
CACHE_URL_PROPERTY, log, TIME_TO_LIVE_PROPERTY, WAIT_FOR_RESPONSE_PROPERTY
 
Constructor Summary
TransactionalMapCacheProvider()
           
 
Method Summary
 org.hibernate.cache.Cache buildCache(String regionName, Properties properties)
          Returns TransactionalMapCache.
protected  void doStart(Properties properties)
          Finds JTA transaction manager.
 
Methods inherited from class org.openspaces.hibernate.cache.AbstractMapCacheProvider
doStop, getMap, getTimeToLive, getWaitForResponse, isMinimalPutsEnabledByDefault, nextTimestamp, start, stop
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TransactionalMapCacheProvider

public TransactionalMapCacheProvider()
Method Detail

doStart

protected void doStart(Properties properties)
                throws org.hibernate.cache.CacheException
Finds JTA transaction manager.

Overrides:
doStart in class AbstractMapCacheProvider
Throws:
org.hibernate.cache.CacheException

buildCache

public org.hibernate.cache.Cache buildCache(String regionName,
                                            Properties properties)
                                     throws org.hibernate.cache.CacheException
Returns TransactionalMapCache.

Throws:
org.hibernate.cache.CacheException

GigaSpaces XAP 9.7.2 API

Copyright © GigaSpaces.