Dashboard Builder Commons 6.0.0.Beta1

org.jboss.dashboard.database.cache.providers
Class CustomCacheProvider

java.lang.Object
  extended by org.jboss.dashboard.database.cache.providers.CustomCacheProvider
All Implemented Interfaces:
org.hibernate.cache.CacheProvider

public class CustomCacheProvider
extends Object
implements org.hibernate.cache.CacheProvider

Support for CustomCache replicated cache. CustomCache does not support locking, so strict "read-write" semantics are unsupported.


Constructor Summary
CustomCacheProvider()
           
 
Method Summary
 org.hibernate.cache.Cache buildCache(String regionName, Properties properties)
           
 boolean isMinimalPutsEnabledByDefault()
           
 long nextTimestamp()
           
 void start(Properties properties)
          Callback to perform any necessary initialization of the underlying cache implementation during SessionFactory construction.
 void stop()
          Callback to perform any necessary cleanup of the underlying cache implementation during SessionFactory.close().
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CustomCacheProvider

public CustomCacheProvider()
Method Detail

buildCache

public org.hibernate.cache.Cache buildCache(String regionName,
                                            Properties properties)
                                     throws org.hibernate.cache.CacheException
Specified by:
buildCache in interface org.hibernate.cache.CacheProvider
Throws:
org.hibernate.cache.CacheException

nextTimestamp

public long nextTimestamp()
Specified by:
nextTimestamp in interface org.hibernate.cache.CacheProvider

start

public void start(Properties properties)
           throws org.hibernate.cache.CacheException
Callback to perform any necessary initialization of the underlying cache implementation during SessionFactory construction.

Specified by:
start in interface org.hibernate.cache.CacheProvider
Parameters:
properties - current configuration settings.
Throws:
org.hibernate.cache.CacheException

stop

public void stop()
Callback to perform any necessary cleanup of the underlying cache implementation during SessionFactory.close().

Specified by:
stop in interface org.hibernate.cache.CacheProvider

isMinimalPutsEnabledByDefault

public boolean isMinimalPutsEnabledByDefault()
Specified by:
isMinimalPutsEnabledByDefault in interface org.hibernate.cache.CacheProvider

Dashboard Builder Commons 6.0.0.Beta1

Copyright © 2012-2013 JBoss by Red Hat. All Rights Reserved.