Interface CacheProvider

All Known Implementing Classes:
AbstractJndiBoundCacheProvider, HashtableCacheProvider, NoCacheProvider

public interface CacheProvider
Deprecated.
As of 3.3; see for details.
Support for pluggable caches.
  • Method Details

    • buildCache

      Cache buildCache(String regionName, Properties properties) throws CacheException
      Deprecated.
      Configure the cache
      Parameters:
      regionName - the name of the cache region
      properties - configuration settings
      Throws:
      CacheException
    • nextTimestamp

      long nextTimestamp()
      Deprecated.
      Generate a timestamp
    • start

      void start(Properties properties) throws CacheException
      Deprecated.
      Callback to perform any necessary initialization of the underlying cache implementation during SessionFactory construction.
      Parameters:
      properties - current configuration settings.
      Throws:
      CacheException
    • stop

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

      boolean isMinimalPutsEnabledByDefault()
      Deprecated.